diff options
| author | Reid Kleckner <rnk@google.com> | 2017-03-21 16:57:30 +0000 |
|---|---|---|
| committer | Reid Kleckner <rnk@google.com> | 2017-03-21 16:57:30 +0000 |
| commit | de86482ce078e1f5d035f227cba09eb32bb3218f (patch) | |
| tree | 580f727f3ea5b73dd2ec8015cde7f85178870499 /clang/lib/CodeGen/TargetInfo.cpp | |
| parent | b518054b87c40afc4c301dfb26eaa11ee8902208 (diff) | |
| download | bcm5719-llvm-de86482ce078e1f5d035f227cba09eb32bb3218f.tar.gz bcm5719-llvm-de86482ce078e1f5d035f227cba09eb32bb3218f.zip | |
Update Clang for LLVM rename AttributeSet -> AttributeList
llvm-svn: 298394
Diffstat (limited to 'clang/lib/CodeGen/TargetInfo.cpp')
| -rw-r--r-- | clang/lib/CodeGen/TargetInfo.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/clang/lib/CodeGen/TargetInfo.cpp b/clang/lib/CodeGen/TargetInfo.cpp index 82f412f012d..34128f32213 100644 --- a/clang/lib/CodeGen/TargetInfo.cpp +++ b/clang/lib/CodeGen/TargetInfo.cpp @@ -1901,10 +1901,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->addAttributes(llvm::AttributeSet::FunctionIndex, - llvm::AttributeSet::get(CGM.getLLVMContext(), - llvm::AttributeSet::FunctionIndex, - B)); + Fn->addAttributes( + llvm::AttributeList::FunctionIndex, + llvm::AttributeList::get(CGM.getLLVMContext(), + llvm::AttributeList::FunctionIndex, B)); } if (FD->hasAttr<AnyX86InterruptAttr>()) { llvm::Function *Fn = cast<llvm::Function>(GV); @@ -5449,10 +5449,10 @@ public: // the backend to perform a realignment as part of the function prologue. llvm::AttrBuilder B; B.addStackAlignmentAttr(8); - Fn->addAttributes(llvm::AttributeSet::FunctionIndex, - llvm::AttributeSet::get(CGM.getLLVMContext(), - llvm::AttributeSet::FunctionIndex, - B)); + Fn->addAttributes( + llvm::AttributeList::FunctionIndex, + llvm::AttributeList::get(CGM.getLLVMContext(), + llvm::AttributeList::FunctionIndex, B)); } }; |

