diff options
author | Chris Lattner <sabre@nondot.org> | 2007-05-04 03:39:28 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-05-04 03:39:28 +0000 |
commit | 645fc4edc23930365595e3e4b3314db0433a8182 (patch) | |
tree | d4b0f42f583b70072a292a14762c9ea24d4925f1 /include | |
parent | e4b4394b2f53c6ee8690669164710b109274a574 (diff) | |
download | llvm-645fc4edc23930365595e3e4b3314db0433a8182.tar.gz llvm-645fc4edc23930365595e3e4b3314db0433a8182.tar.bz2 llvm-645fc4edc23930365595e3e4b3314db0433a8182.tar.xz |
if functiontype is going to have a pointer to a paramattr object, it better
be const. The only way to get a pointer to these returns a const pointer.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36734 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/DerivedTypes.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/llvm/DerivedTypes.h b/include/llvm/DerivedTypes.h index af58827c88..5aaa76ede3 100644 --- a/include/llvm/DerivedTypes.h +++ b/include/llvm/DerivedTypes.h @@ -140,12 +140,12 @@ public: class FunctionType : public DerivedType { friend class TypeMap<FunctionValType, FunctionType>; bool isVarArgs; - ParamAttrsList *ParamAttrs; + const ParamAttrsList *ParamAttrs; FunctionType(const FunctionType &); // Do not implement const FunctionType &operator=(const FunctionType &); // Do not implement FunctionType(const Type *Result, const std::vector<const Type*> &Params, - bool IsVarArgs, ParamAttrsList *Attrs = 0); + bool IsVarArgs, const ParamAttrsList *Attrs = 0); public: /// FunctionType::get - This static method is the primary way of constructing @@ -155,7 +155,7 @@ public: const Type *Result, ///< The result type const std::vector<const Type*> &Params, ///< The types of the parameters bool isVarArg, ///< Whether this is a variable argument length function - ParamAttrsList *Attrs = 0 + const ParamAttrsList *Attrs = 0 ///< Indicates the parameter attributes to use, if any. The 0th entry ///< in the list refers to the return type. Parameters are numbered ///< starting at 1. This argument must be on the heap and FunctionType |