Use a SmallVector for intrinsic argument types.
authorBenjamin Kramer <benny.kra@googlemail.com>
Mon, 17 Oct 2011 21:33:26 +0000 (21:33 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Mon, 17 Oct 2011 21:33:26 +0000 (21:33 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142259 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/Blackfin/BlackfinIntrinsicInfo.cpp
lib/Target/MBlaze/MBlazeIntrinsicInfo.cpp
lib/VMCore/Function.cpp

index 71356768dd5dd90731d73f30cdc9f123d1f1b4fe..9120e15f9f850f745676613abe124868c42e50cd 100644 (file)
@@ -83,7 +83,7 @@ bool BlackfinIntrinsicInfo::isOverloaded(unsigned IntrID) const {
 
 static FunctionType *getType(LLVMContext &Context, unsigned id) {
   Type *ResultTy = NULL;
-  std::vector<Type*> ArgTys;
+  SmallVector<Type*, 8> ArgTys;
   bool IsVarArg = false;
   
 #define GET_INTRINSIC_GENERATOR
index ea81dd63d195c38a23d7589777f00e2a3fbf23dd..4c78deb8fd6c1fe298995287080fcc32eb2c9731 100644 (file)
@@ -92,7 +92,7 @@ bool MBlazeIntrinsicInfo::isOverloaded(unsigned IntrID) const {
 
 static FunctionType *getType(LLVMContext &Context, unsigned id) {
   Type *ResultTy = NULL;
-  std::vector<Type*> ArgTys;
+  SmallVector<Type*, 8> ArgTys;
   bool IsVarArg = false;
 
 #define GET_INTRINSIC_GENERATOR
index a6128b0cad734077bd319615237638d29dfc25b4..be0f05670441142b680db46699c54621597b7bfc 100644 (file)
@@ -359,7 +359,7 @@ std::string Intrinsic::getName(ID id, ArrayRef<Type*> Tys) {
 FunctionType *Intrinsic::getType(LLVMContext &Context,
                                        ID id, ArrayRef<Type*> Tys) {
   Type *ResultTy = NULL;
-  std::vector<Type*> ArgTys;
+  SmallVector<Type*, 8> ArgTys;
   bool IsVarArg = false;
   
 #define GET_INTRINSIC_GENERATOR