summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorDmitry Mikulin <dmitry.mikulin@sony.com>2018-05-07 21:30:15 +0000
committerDmitry Mikulin <dmitry.mikulin@sony.com>2018-05-07 21:30:15 +0000
commit738bac77c197efc9e9bcd228f07e67824b0e0649 (patch)
tree16464fc7b145d120e690d461348293c2c8c82417 /llvm/lib
parent88ce10b77d3ccb1f586397a7b4df8b821f6e0f37 (diff)
downloadbcm5719-llvm-738bac77c197efc9e9bcd228f07e67824b0e0649.tar.gz
bcm5719-llvm-738bac77c197efc9e9bcd228f07e67824b0e0649.zip
Remove explicit setting of the CFI jumptable section name, it does not appear
to be needed: jump table sections are created with .cfi.jumptable suffix. With this change each jump table is placed in a separate section, which allows the linker to re-order them. Differential Revision: https://reviews.llvm.org/D46537 llvm-svn: 331680
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Transforms/IPO/LowerTypeTests.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/llvm/lib/Transforms/IPO/LowerTypeTests.cpp b/llvm/lib/Transforms/IPO/LowerTypeTests.cpp
index c861373bd41..1f19a3b9779 100644
--- a/llvm/lib/Transforms/IPO/LowerTypeTests.cpp
+++ b/llvm/lib/Transforms/IPO/LowerTypeTests.cpp
@@ -1272,12 +1272,6 @@ void LowerTypeTestsModule::createJumpTable(
createJumpTableEntry(AsmOS, ConstraintOS, JumpTableArch, AsmArgs,
cast<Function>(Functions[I]->getGlobal()));
- // Try to emit the jump table at the end of the text segment.
- // Jump table must come after __cfi_check in the cross-dso mode.
- // FIXME: this magic section name seems to do the trick.
- F->setSection(ObjectFormat == Triple::MachO
- ? "__TEXT,__text,regular,pure_instructions"
- : ".text.cfi");
// Align the whole table by entry size.
F->setAlignment(getJumpTableEntrySize());
// Skip prologue.
OpenPOWER on IntegriCloud