diff options
author | Rahman Lavaee <rahmanl@google.com> | 2020-10-07 13:21:20 -0700 |
---|---|---|
committer | Rahman Lavaee <rahmanl@google.com> | 2020-10-07 13:22:38 -0700 |
commit | 34cd06a9b3bddaa7a989c606bbf1327ee651711c (patch) | |
tree | 23293558e81912c0ea16f36fd17e06b1b477154f /llvm/lib/Transforms/Utils/Utils.cpp | |
parent | 365ef499d6005d5842d5e87f9dafe63c2508c881 (diff) | |
download | llvm-34cd06a9b3bddaa7a989c606bbf1327ee651711c.zip llvm-34cd06a9b3bddaa7a989c606bbf1327ee651711c.tar.gz llvm-34cd06a9b3bddaa7a989c606bbf1327ee651711c.tar.bz2 |
[BasicBlockSections] Make sure that the labels for address-taken blocks are emitted after switching the seciton.
Currently, AsmPrinter code is organized in a way in which the labels of address-taken blocks are emitted in the previous section, which makes the relocation incorrect.
This patch reorganizes the code to switch to the basic block section before handling address-taken blocks.
Reviewed By: snehasish, MaskRay
Differential Revision: https://reviews.llvm.org/D88517
Diffstat (limited to 'llvm/lib/Transforms/Utils/Utils.cpp')
0 files changed, 0 insertions, 0 deletions