summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorEli Friedman <efriedma@codeaurora.org>2018-04-27 00:32:24 +0000
committerEli Friedman <efriedma@codeaurora.org>2018-04-27 00:32:24 +0000
commite06539456ca3daee8e6741d0901e72a29d8e28b8 (patch)
treeddb61c424d964b19ac16c714d023e8f0d096f043 /llvm/lib
parentda018e5687a8694585d20db87ee135c0638e14bf (diff)
downloadbcm5719-llvm-e06539456ca3daee8e6741d0901e72a29d8e28b8.tar.gz
bcm5719-llvm-e06539456ca3daee8e6741d0901e72a29d8e28b8.zip
[LowerTypeTests] Mark .cfi.jumptable nounwind.
It doesn't unwind, and the wrong marking leads to the creation of an .eh_frame section when it isn't necessary. Differential Revision: https://reviews.llvm.org/D46082 llvm-svn: 331008
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Transforms/IPO/LowerTypeTests.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/IPO/LowerTypeTests.cpp b/llvm/lib/Transforms/IPO/LowerTypeTests.cpp
index 925d8f87b3f..1e17d13faec 100644
--- a/llvm/lib/Transforms/IPO/LowerTypeTests.cpp
+++ b/llvm/lib/Transforms/IPO/LowerTypeTests.cpp
@@ -1290,6 +1290,8 @@ void LowerTypeTestsModule::createJumpTable(
// by Clang for -march=armv7.
F->addFnAttr("target-cpu", "cortex-a8");
}
+ // Make sure we don't emit .eh_frame for this function.
+ F->addFnAttr(Attribute::NoUnwind);
BasicBlock *BB = BasicBlock::Create(M.getContext(), "entry", F);
IRBuilder<> IRB(BB);
OpenPOWER on IntegriCloud