summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2015-02-14 01:16:54 +0000
committerMatthias Braun <matze@braunis.de>2015-02-14 01:16:54 +0000
commit33cc10724d7d5ae3e6502fb8806cc02a1f821aef (patch)
treed5bcc32b4cd469a37d0e6a2baaa279340cca5ce3 /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
parent2c79ad974c641dd799b04c656aa8c2fc96dfb3cd (diff)
downloadbcm5719-llvm-33cc10724d7d5ae3e6502fb8806cc02a1f821aef.tar.gz
bcm5719-llvm-33cc10724d7d5ae3e6502fb8806cc02a1f821aef.zip
Revert "On ELF, put PIC jump tables in a non executable section."
This reverts commit r228939. The commit broke something in the output of exception handling tables on darwin x86-64. llvm-svn: 229203
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp')
-rw-r--r--llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp b/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
index 4f46e37d39c..0a49f5ff9fe 100644
--- a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
+++ b/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
@@ -356,13 +356,6 @@ const MCSection *TargetLoweringObjectFileELF::getSectionForJumpTable(
return getContext().getELFSection(Name, ELF::SHT_PROGBITS, Flags, 0, Group);
}
-bool TargetLoweringObjectFileELF::shouldPutJumpTableInFunctionSection(
- bool UsesLabelDifference, const Function &F) const {
- // We can always create relative relocations, so use another section
- // that can be marked non-executable.
- return false;
-}
-
/// getSectionForConstant - Given a mergeable constant with the
/// specified size and relocation information, return a section that it
/// should be placed in.
OpenPOWER on IntegriCloud