summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2011-05-25 03:44:55 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2011-05-25 03:44:55 +0000
commitc1ee12c95296bd82f5f27c7a3d3a5fdc43cce6a5 (patch)
treefd50e8ac2aa9ccf22843724b4e875645cf517256 /clang/lib/CodeGen/CodeGenModule.cpp
parentfc9bae6f8bcbf65699cb30af3149906bd2f096f6 (diff)
downloadbcm5719-llvm-c1ee12c95296bd82f5f27c7a3d3a5fdc43cce6a5.tar.gz
bcm5719-llvm-c1ee12c95296bd82f5f27c7a3d3a5fdc43cce6a5.zip
Update for llvm api change.
llvm-svn: 132034
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r--clang/lib/CodeGen/CodeGenModule.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp
index 4f2b10ad652..987ebffd97d 100644
--- a/clang/lib/CodeGen/CodeGenModule.cpp
+++ b/clang/lib/CodeGen/CodeGenModule.cpp
@@ -452,6 +452,9 @@ void CodeGenModule::SetLLVMFunctionAttributes(const Decl *D,
void CodeGenModule::SetLLVMFunctionAttributesForDefinition(const Decl *D,
llvm::Function *F) {
+ if (CodeGenOpts.UnwindTables)
+ F->setHasUWTable();
+
if (!Features.Exceptions && !Features.ObjCNonFragileABI)
F->addFnAttr(llvm::Attribute::NoUnwind);
OpenPOWER on IntegriCloud