diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2007-04-09 06:11:23 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2007-04-09 06:11:23 +0000 |
commit | 26d9ff65a33671e2be3d06fcf0f725738d54412d (patch) | |
tree | 10f85f0f9c26a2875e5db2969f404f3939eb045a | |
parent | 1517de317a143b3e6218fac202a6b062fdcbd08e (diff) | |
download | bcm5719-llvm-26d9ff65a33671e2be3d06fcf0f725738d54412d.tar.gz bcm5719-llvm-26d9ff65a33671e2be3d06fcf0f725738d54412d.zip |
For PR1146:
Parameter attributes can now be defaulted for intrinsics.
llvm-svn: 35809
-rw-r--r-- | llvm/lib/VMCore/Function.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/VMCore/Function.cpp b/llvm/lib/VMCore/Function.cpp index 4bf64ed9fbb..5da3cebb069 100644 --- a/llvm/lib/VMCore/Function.cpp +++ b/llvm/lib/VMCore/Function.cpp @@ -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, |