summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-01-12 01:18:58 +0000
committerChris Lattner <sabre@nondot.org>2009-01-12 01:18:58 +0000
commit49b7ee1b50ab799a7a2f9ded43f786340fe4165a (patch)
treefe1776cf9e7e52802bfd7cbf2af1fb1634119789 /llvm/lib
parent9a3113aeb8b560cf696bbd3684367fedcc10a9b3 (diff)
downloadbcm5719-llvm-49b7ee1b50ab799a7a2f9ded43f786340fe4165a.tar.gz
bcm5719-llvm-49b7ee1b50ab799a7a2f9ded43f786340fe4165a.zip
make tblgen emit the entire Intrinsic::getAttributes method,
not a random piece of it. No functionality change. llvm-svn: 62066
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/VMCore/Function.cpp11
1 files changed, 1 insertions, 10 deletions
diff --git a/llvm/lib/VMCore/Function.cpp b/llvm/lib/VMCore/Function.cpp
index 8eaff880ee4..bda2eff4c99 100644
--- a/llvm/lib/VMCore/Function.cpp
+++ b/llvm/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,
OpenPOWER on IntegriCloud