aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm')
-rw-r--r--include/llvm/DerivedTypes.h4
-rw-r--r--include/llvm/iOther.h2
2 files changed, 4 insertions, 2 deletions
diff --git a/include/llvm/DerivedTypes.h b/include/llvm/DerivedTypes.h
index c5a3abd..6b3fd1f 100644
--- a/include/llvm/DerivedTypes.h
+++ b/include/llvm/DerivedTypes.h
@@ -24,6 +24,7 @@ public:
private:
const Type *ResultType;
ParamTypes ParamTys;
+ bool isVarArgs;
MethodType(const MethodType &); // Do not implement
const MethodType &operator=(const MethodType &); // Do not implement
@@ -34,9 +35,10 @@ protected:
// Private ctor - Only can be created by a static member...
MethodType(const Type *Result, const vector<const Type*> &Params,
- const string &Name);
+ bool IsVarArgs, const string &Name);
public:
+ inline bool isVarArg() const { return isVarArgs; }
inline const Type *getReturnType() const { return ResultType; }
inline const ParamTypes &getParamTypes() const { return ParamTys; }
diff --git a/include/llvm/iOther.h b/include/llvm/iOther.h
index e522e14..5dc7365 100644
--- a/include/llvm/iOther.h
+++ b/include/llvm/iOther.h
@@ -111,7 +111,7 @@ public:
class CallInst : public Instruction {
CallInst(const CallInst &CI);
public:
- CallInst(Method *M, vector<Value*> &params, const string &Name = "");
+ CallInst(Method *M, const vector<Value*> &params, const string &Name = "");
virtual const char *getOpcodeName() const { return "call"; }