diff options
author | Chris Lattner <sabre@nondot.org> | 2009-01-12 01:18:58 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-01-12 01:18:58 +0000 |
commit | 048ffb239c282277959463c61200b86e2380cb84 (patch) | |
tree | 89ca6d3f196aff480844828e2592c94b00d75c07 /lib/VMCore/Function.cpp | |
parent | a62c302ddd79c525d6fac050974911d36662ebfe (diff) | |
download | external_llvm-048ffb239c282277959463c61200b86e2380cb84.zip external_llvm-048ffb239c282277959463c61200b86e2380cb84.tar.gz external_llvm-048ffb239c282277959463c61200b86e2380cb84.tar.bz2 |
make tblgen emit the entire Intrinsic::getAttributes method,
not a random piece of it. No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62066 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/Function.cpp')
-rw-r--r-- | lib/VMCore/Function.cpp | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/lib/VMCore/Function.cpp b/lib/VMCore/Function.cpp index 8eaff88..bda2eff 100644 --- a/lib/VMCore/Function.cpp +++ b/lib/VMCore/Function.cpp @@ -359,20 +359,11 @@ const FunctionType *Intrinsic::getType(ID id, const Type **Tys, return FunctionType::get(ResultTy, ArgTys, IsVarArg); } -AttrListPtr Intrinsic::getAttributes(ID id) { - Attributes Attr = Attribute::None; - +/// This defines the "Intrinsic::getAttributes(ID id)" method. #define GET_INTRINSIC_ATTRIBUTES #include "llvm/Intrinsics.gen" #undef GET_INTRINSIC_ATTRIBUTES - // Intrinsics cannot throw exceptions. - Attr |= Attribute::NoUnwind; - - AttributeWithIndex PAWI = AttributeWithIndex::get(~0, Attr); - return AttrListPtr::get(&PAWI, 1); -} - Function *Intrinsic::getDeclaration(Module *M, ID id, const Type **Tys, unsigned numTys) { // There can never be multiple globals with the same name of different types, |