diff options
author | Bill Wendling <isanbard@gmail.com> | 2012-10-10 03:13:20 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2012-10-10 03:13:20 +0000 |
commit | 73e465e148e1fef84197388ca90e995edcdbedc5 (patch) | |
tree | 9afa985a9939b04584d3ebf2ad5dd19e70da9ca1 /clang/lib/CodeGen/CodeGenFunction.cpp | |
parent | f319e9905fbddc2cf83a9c82734f4591a6ba8d89 (diff) | |
download | bcm5719-llvm-73e465e148e1fef84197388ca90e995edcdbedc5.tar.gz bcm5719-llvm-73e465e148e1fef84197388ca90e995edcdbedc5.zip |
Have 'addFnAttr' take the attribute enum value. Then have it build the attribute object and add it appropriately. No functionality change.
llvm-svn: 165596
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenFunction.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.cpp b/clang/lib/CodeGen/CodeGenFunction.cpp index 906a80cefb1..8562d79ebf5 100644 --- a/clang/lib/CodeGen/CodeGenFunction.cpp +++ b/clang/lib/CodeGen/CodeGenFunction.cpp @@ -348,7 +348,7 @@ void CodeGenFunction::StartFunction(GlobalDecl GD, QualType RetTy, for (FunctionDecl::redecl_iterator RI = FD->redecls_begin(), RE = FD->redecls_end(); RI != RE; ++RI) if (RI->isInlineSpecified()) { - Fn->addFnAttr(llvm::Attribute::InlineHint); + Fn->addFnAttr(llvm::Attributes::InlineHint); break; } @@ -485,7 +485,7 @@ static void TryMarkNoThrow(llvm::Function *F) { } else if (isa<llvm::ResumeInst>(&*BI)) { return; } - F->setDoesNotThrow(true); + F->setDoesNotThrow(); } void CodeGenFunction::GenerateCode(GlobalDecl GD, llvm::Function *Fn, |