diff options
author | Bill Wendling <isanbard@gmail.com> | 2012-10-15 04:47:45 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2012-10-15 04:47:45 +0000 |
commit | 50e6b18f99c45b31e6216ab221f6b3911b24fa1f (patch) | |
tree | f7b7f56c3704c95645c82db60f1359a1aac3194a /lib/CodeGen/ItaniumCXXABI.cpp | |
parent | 802cd5b1974bab2038b9d3c969d9beb0ab34f435 (diff) |
Attributes Rewrite
Convert the uses of the Attributes class over to the new format. The
Attributes::get method call now takes an LLVM context so that the attributes
object can be uniquified and stored.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@165918 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/ItaniumCXXABI.cpp')
-rw-r--r-- | lib/CodeGen/ItaniumCXXABI.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/CodeGen/ItaniumCXXABI.cpp b/lib/CodeGen/ItaniumCXXABI.cpp index 4d944301d2..42ca81e6a6 100644 --- a/lib/CodeGen/ItaniumCXXABI.cpp +++ b/lib/CodeGen/ItaniumCXXABI.cpp @@ -953,7 +953,8 @@ static llvm::Constant *getGuardAcquireFn(CodeGenModule &CGM, llvm::Attributes::Builder B; B.addAttribute(llvm::Attributes::NoUnwind); return CGM.CreateRuntimeFunction(FTy, "__cxa_guard_acquire", - llvm::Attributes::get(B)); + llvm::Attributes::get(CGM.getLLVMContext(), + B)); } static llvm::Constant *getGuardReleaseFn(CodeGenModule &CGM, @@ -964,7 +965,8 @@ static llvm::Constant *getGuardReleaseFn(CodeGenModule &CGM, llvm::Attributes::Builder B; B.addAttribute(llvm::Attributes::NoUnwind); return CGM.CreateRuntimeFunction(FTy, "__cxa_guard_release", - llvm::Attributes::get(B)); + llvm::Attributes::get(CGM.getLLVMContext(), + B)); } static llvm::Constant *getGuardAbortFn(CodeGenModule &CGM, @@ -975,7 +977,8 @@ static llvm::Constant *getGuardAbortFn(CodeGenModule &CGM, llvm::Attributes::Builder B; B.addAttribute(llvm::Attributes::NoUnwind); return CGM.CreateRuntimeFunction(FTy, "__cxa_guard_abort", - llvm::Attributes::get(B)); + llvm::Attributes::get(CGM.getLLVMContext(), + B)); } namespace { |