For PR1146:
authorReid Spencer <rspencer@reidspencer.com>
Mon, 9 Apr 2007 06:11:23 +0000 (06:11 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Mon, 9 Apr 2007 06:11:23 +0000 (06:11 +0000)
Parameter attributes can now be defaulted for intrinsics.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35809 91177308-0d34-0410-b5e6-96231b3b80d8

lib/VMCore/Function.cpp

index 4bf64ed9fbb9a0bd006920e49ca35c75158c4787..5da3cebb0691c77b84404e7ede55616b9dc1a471 100644 (file)
@@ -13,6 +13,7 @@
 
 #include "llvm/Module.h"
 #include "llvm/DerivedTypes.h"
+#include "llvm/ParameterAttributes.h"
 #include "llvm/IntrinsicInst.h"
 #include "llvm/Support/LeakDetector.h"
 #include "SymbolTableListTraitsImpl.h"
@@ -197,14 +198,13 @@ const FunctionType *Intrinsic::getType(ID id, const Type **Tys,
                                        uint32_t numTys) {
   const Type *ResultTy = NULL;
   std::vector<const Type*> ArgTys;
-  std::vector<FunctionType::ParameterAttributes> Attrs;
   bool IsVarArg = false;
   
 #define GET_INTRINSIC_GENERATOR
 #include "llvm/Intrinsics.gen"
 #undef GET_INTRINSIC_GENERATOR
 
-  return FunctionType::get(ResultTy, ArgTys, IsVarArg, Attrs); 
+  return FunctionType::get(ResultTy, ArgTys, IsVarArg); 
 }
 
 Function *Intrinsic::getDeclaration(Module *M, ID id, const Type **Tys,