diff options
| author | Bill Wendling <isanbard@gmail.com> | 2013-01-23 00:21:06 +0000 |
|---|---|---|
| committer | Bill Wendling <isanbard@gmail.com> | 2013-01-23 00:21:06 +0000 |
| commit | 9a6779294fec14c6230931c745e2c3f078cead77 (patch) | |
| tree | 8b578043890f50d7ee2e5ebfbbde5d4c87319f92 /clang/lib/CodeGen/TargetInfo.cpp | |
| parent | c0e2a1f4575520fcf1b202c838250d2623e23cd2 (diff) | |
| download | bcm5719-llvm-9a6779294fec14c6230931c745e2c3f078cead77.tar.gz bcm5719-llvm-9a6779294fec14c6230931c745e2c3f078cead77.zip | |
Use the AttributeSet when adding multiple attributes and an Attribute::AttrKind
when adding a single attribute to the function.
llvm-svn: 173211
Diffstat (limited to 'clang/lib/CodeGen/TargetInfo.cpp')
| -rw-r--r-- | clang/lib/CodeGen/TargetInfo.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/TargetInfo.cpp b/clang/lib/CodeGen/TargetInfo.cpp index 9811143c8d6..68038535781 100644 --- a/clang/lib/CodeGen/TargetInfo.cpp +++ b/clang/lib/CodeGen/TargetInfo.cpp @@ -1019,8 +1019,10 @@ void X86_32TargetCodeGenInfo::SetTargetAttributes(const Decl *D, // Now add the 'alignstack' attribute with a value of 16. llvm::AttrBuilder B; B.addStackAlignmentAttr(16); - Fn->addAttribute(llvm::AttributeSet::FunctionIndex, - llvm::Attribute::get(CGM.getLLVMContext(), B)); + Fn->addAttributes(llvm::AttributeSet::FunctionIndex, + llvm::AttributeSet::get(CGM.getLLVMContext(), + llvm::AttributeSet::FunctionIndex, + B)); } } } |

