diff options
author | Bill Wendling <isanbard@gmail.com> | 2012-10-10 07:36:56 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2012-10-10 07:36:56 +0000 |
commit | a7912f8894afb5d115650f15e8d7577ba092d1c5 (patch) | |
tree | e9c685bc436216af9ec1843452f2610143157ab9 /clang/lib/CodeGen/CGStmt.cpp | |
parent | bbcdf4e2a5d57fed745d4c2a549c57c25f1e3aec (diff) | |
download | bcm5719-llvm-a7912f8894afb5d115650f15e8d7577ba092d1c5.tar.gz bcm5719-llvm-a7912f8894afb5d115650f15e8d7577ba092d1c5.zip |
Remove the final bits of Attributes being declared in the Attribute
namespace. Use the attribute's enum value instead. No functionality change
intended.
llvm-svn: 165611
Diffstat (limited to 'clang/lib/CodeGen/CGStmt.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGStmt.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGStmt.cpp b/clang/lib/CodeGen/CGStmt.cpp index df09dce7fd6..41a96e82e24 100644 --- a/clang/lib/CodeGen/CGStmt.cpp +++ b/clang/lib/CodeGen/CGStmt.cpp @@ -1632,7 +1632,9 @@ void CodeGenFunction::EmitAsmStmt(const AsmStmt &S) { llvm::InlineAsm::get(FTy, AsmString, Constraints, HasSideEffect, /* IsAlignStack */ false, AsmDialect); llvm::CallInst *Result = Builder.CreateCall(IA, Args); - Result->addAttribute(~0, llvm::Attribute::NoUnwind); + llvm::Attributes::Builder B; + B.addAttribute(llvm::Attributes::NoUnwind); + Result->addAttribute(~0, llvm::Attributes::get(B)); // Slap the source location of the inline asm into a !srcloc metadata on the // call. FIXME: Handle metadata for MS-style inline asms. |