mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-10-25 10:27:04 +00:00
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:
@@ -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; }
|
||||
|
||||
|
||||
@@ -111,7 +111,7 @@ public:
|
||||
class CallInst : public Instruction {
|
||||
CallInst(const CallInst &CI);
|
||||
public:
|
||||
CallInst(Method *M, vector<Value*> ¶ms, const string &Name = "");
|
||||
CallInst(Method *M, const vector<Value*> ¶ms, const string &Name = "");
|
||||
|
||||
virtual const char *getOpcodeName() const { return "call"; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user