mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-02 07:11:49 +00:00
visitCallInst --> visitCallSite.
Use visitCallSite to implement both CallInsts and InvokeInsts. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9788 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ae2495a921
commit
fea483d7c0
@ -637,9 +637,9 @@ void Interpreter::visitStoreInst(StoreInst &I) {
|
||||
// Miscellaneous Instruction Implementations
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
void Interpreter::visitCallInst(CallInst &I) {
|
||||
void Interpreter::visitCallSite(CallSite CS) {
|
||||
ExecutionContext &SF = ECStack.back();
|
||||
SF.Caller = CallSite(&I);
|
||||
SF.Caller = CS;
|
||||
std::vector<GenericValue> ArgVals;
|
||||
const unsigned NumArgs = SF.Caller.arg_size();
|
||||
ArgVals.reserve(NumArgs);
|
||||
|
@ -119,10 +119,13 @@ public:
|
||||
void visitLoadInst(LoadInst &I);
|
||||
void visitStoreInst(StoreInst &I);
|
||||
void visitGetElementPtrInst(GetElementPtrInst &I);
|
||||
|
||||
void visitPHINode(PHINode &PN) { assert(0 && "PHI nodes already handled!"); }
|
||||
void visitCastInst(CastInst &I);
|
||||
void visitCallInst(CallInst &I);
|
||||
|
||||
void visitCallSite(CallSite CS);
|
||||
void visitCallInst(CallInst &I) { visitCallSite (CallSite (&I)); }
|
||||
void visitInvokeInst(InvokeInst &I) { visitCallSite (CallSite (&I)); }
|
||||
|
||||
void visitShl(ShiftInst &I);
|
||||
void visitShr(ShiftInst &I);
|
||||
void visitVANextInst(VANextInst &I);
|
||||
|
Loading…
Reference in New Issue
Block a user