[llvm-commits] CVS: llvm/include/llvm/DerivedTypes.h
Chris Lattner
sabre at nondot.org
Thu May 3 20:39:52 PDT 2007
Changes in directory llvm/include/llvm:
DerivedTypes.h updated: 1.93 -> 1.94
---
Log message:
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.
---
Diffs of the changes: (+3 -3)
DerivedTypes.h | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
Index: llvm/include/llvm/DerivedTypes.h
diff -u llvm/include/llvm/DerivedTypes.h:1.93 llvm/include/llvm/DerivedTypes.h:1.94
--- llvm/include/llvm/DerivedTypes.h:1.93 Thu May 3 12:10:20 2007
+++ llvm/include/llvm/DerivedTypes.h Thu May 3 22:39:28 2007
@@ -140,12 +140,12 @@
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 @@
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
More information about the llvm-commits
mailing list