forked from OSchip/llvm-project
visitCallInst --> visitCallSite.
Use visitCallSite to implement both CallInsts and InvokeInsts. llvm-svn: 9788
This commit is contained in:
parent
a6d48e4db2
commit
a6454d3532
|
@ -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