diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2011-04-06 20:28:34 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2011-04-06 20:28:34 +0000 |
commit | ec5d1800f9baecb69289b18baefe593960b0d555 (patch) | |
tree | 150e01601ec9a3d5cba54756136d004391c24469 /include | |
parent | 70d4370b47cdd375bbea98e50452789fe4f1af04 (diff) | |
download | external_llvm-ec5d1800f9baecb69289b18baefe593960b0d555.zip external_llvm-ec5d1800f9baecb69289b18baefe593960b0d555.tar.gz external_llvm-ec5d1800f9baecb69289b18baefe593960b0d555.tar.bz2 |
Replace const std::vector& with ArrayRef in the type creation APIs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129024 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/DerivedTypes.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/include/llvm/DerivedTypes.h b/include/llvm/DerivedTypes.h index 56d1e3e..cef7ec1 100644 --- a/include/llvm/DerivedTypes.h +++ b/include/llvm/DerivedTypes.h @@ -19,6 +19,7 @@ #define LLVM_DERIVED_TYPES_H #include "llvm/Type.h" +#include "llvm/ADT/ArrayRef.h" #include "llvm/Support/DataTypes.h" namespace llvm { @@ -147,7 +148,7 @@ class FunctionType : public DerivedType { FunctionType(const FunctionType &); // Do not implement const FunctionType &operator=(const FunctionType &); // Do not implement - FunctionType(const Type *Result, const std::vector<const Type*> &Params, + FunctionType(const Type *Result, ArrayRef<const Type*> Params, bool IsVarArgs); public: @@ -156,7 +157,7 @@ public: /// static FunctionType *get( const Type *Result, ///< The result type - const std::vector<const Type*> &Params, ///< The types of the parameters + ArrayRef<const Type*> Params, ///< The types of the parameters bool isVarArg ///< Whether this is a variable argument length function ); @@ -237,14 +238,13 @@ class StructType : public CompositeType { friend class TypeMap<StructValType, StructType>; StructType(const StructType &); // Do not implement const StructType &operator=(const StructType &); // Do not implement - StructType(LLVMContext &C, - const std::vector<const Type*> &Types, bool isPacked); + StructType(LLVMContext &C, ArrayRef<const Type*> Types, bool isPacked); public: /// StructType::get - This static method is the primary way to create a /// StructType. /// static StructType *get(LLVMContext &Context, - const std::vector<const Type*> &Params, + ArrayRef<const Type*> Params, bool isPacked=false); /// StructType::get - Create an empty structure type. |