Add support for extern varargs methods & varargs method calls

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@297 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner
2001-07-25 22:47:55 +00:00
parent 8b81bf5046
commit e5a57ee363
9 changed files with 130 additions and 46 deletions

View File

@@ -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; }

View File

@@ -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"; }