summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGObjCMac.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2012-10-10 07:36:56 +0000
committerBill Wendling <isanbard@gmail.com>2012-10-10 07:36:56 +0000
commita7912f8894afb5d115650f15e8d7577ba092d1c5 (patch)
treee9c685bc436216af9ec1843452f2610143157ab9 /clang/lib/CodeGen/CGObjCMac.cpp
parentbbcdf4e2a5d57fed745d4c2a549c57c25f1e3aec (diff)
downloadbcm5719-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/CGObjCMac.cpp')
-rw-r--r--clang/lib/CodeGen/CGObjCMac.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGObjCMac.cpp b/clang/lib/CodeGen/CGObjCMac.cpp
index db7e87df984..4e4879921a7 100644
--- a/clang/lib/CodeGen/CGObjCMac.cpp
+++ b/clang/lib/CodeGen/CGObjCMac.cpp
@@ -63,10 +63,12 @@ private:
// Add the non-lazy-bind attribute, since objc_msgSend is likely to
// be called a lot.
llvm::Type *params[] = { ObjectPtrTy, SelectorPtrTy };
+ llvm::Attributes::Builder B;
+ B.addAttribute(llvm::Attributes::NonLazyBind);
return CGM.CreateRuntimeFunction(llvm::FunctionType::get(ObjectPtrTy,
params, true),
"objc_msgSend",
- llvm::Attribute::NonLazyBind);
+ llvm::Attributes::get(B));
}
/// void objc_msgSend_stret (id, SEL, ...)
@@ -580,10 +582,12 @@ public:
llvm::Constant *getSetJmpFn() {
// This is specifically the prototype for x86.
llvm::Type *params[] = { CGM.Int32Ty->getPointerTo() };
+ llvm::Attributes::Builder B;
+ B.addAttribute(llvm::Attributes::NonLazyBind);
return CGM.CreateRuntimeFunction(llvm::FunctionType::get(CGM.Int32Ty,
params, false),
"_setjmp",
- llvm::Attribute::ReturnsTwice);
+ llvm::Attributes::get(B));
}
public:
OpenPOWER on IntegriCloud