aboutsummaryrefslogtreecommitdiff
path: root/lib/ExecutionEngine/Interpreter/Interpreter.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-05-08 16:18:31 +0000
committerChris Lattner <sabre@nondot.org>2003-05-08 16:18:31 +0000
commitda82ed52ac02497d343b898cca0bb2cf303f062d (patch)
treea30e76da9aaa7ff025a59804315b601994bd6ca3 /lib/ExecutionEngine/Interpreter/Interpreter.h
parentcdf5178f8362b0b415a4e1c1378a5b76638826be (diff)
A large number of simple changes:
* s/Method/Function * Kill some obsolete (external) functions that used to be to support tracing git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6041 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine/Interpreter/Interpreter.h')
-rw-r--r--lib/ExecutionEngine/Interpreter/Interpreter.h26
1 files changed, 13 insertions, 13 deletions
diff --git a/lib/ExecutionEngine/Interpreter/Interpreter.h b/lib/ExecutionEngine/Interpreter/Interpreter.h
index 4dacf22c15..0b01f8df58 100644
--- a/lib/ExecutionEngine/Interpreter/Interpreter.h
+++ b/lib/ExecutionEngine/Interpreter/Interpreter.h
@@ -19,7 +19,7 @@
extern CachedWriter CW; // Object to accelerate printing of LLVM
-struct MethodInfo; // Defined in ExecutionAnnotations.h
+struct FunctionInfo; // Defined in ExecutionAnnotations.h
class CallInst;
class ReturnInst;
class BranchInst;
@@ -63,10 +63,10 @@ typedef std::vector<GenericValue> ValuePlaneTy;
// executing.
//
struct ExecutionContext {
- Function *CurMethod; // The currently executing function
+ Function *CurFunction;// The currently executing function
BasicBlock *CurBB; // The currently executing BB
BasicBlock::iterator CurInst; // The next instruction to execute
- MethodInfo *MethInfo; // The MethInfo annotation for the function
+ FunctionInfo *FuncInfo; // The FuncInfo annotation for the function
std::vector<ValuePlaneTy> Values;// ValuePlanes for each type
std::vector<GenericValue> VarArgs; // Values passed through an ellipsis
@@ -111,21 +111,21 @@ public:
void handleUserInput();
// User Interation Methods...
- bool callMethod(const std::string &Name); // return true on failure
+ bool callFunction(const std::string &Name); // return true on failure
void setBreakpoint(const std::string &Name);
void infoValue(const std::string &Name);
void print(const std::string &Name);
static void print(const Type *Ty, GenericValue V);
static void printValue(const Type *Ty, GenericValue V);
- bool callMainMethod(const std::string &MainName,
- const std::vector<std::string> &InputFilename);
+ bool callMainFunction(const std::string &MainName,
+ const std::vector<std::string> &InputFilename);
void list(); // Do the 'list' command
void printStackTrace(); // Do the 'backtrace' command
// Code execution methods...
- void callMethod(Function *F, const std::vector<GenericValue> &ArgVals);
+ void callFunction(Function *F, const std::vector<GenericValue> &ArgVals);
bool executeInstruction(); // Execute one instruction...
void stepInstruction(); // Do the 'step' command
@@ -138,13 +138,13 @@ public:
void executeRetInst(ReturnInst &I, ExecutionContext &SF);
void executeBrInst(BranchInst &I, ExecutionContext &SF);
void executeAllocInst(AllocationInst &I, ExecutionContext &SF);
- GenericValue callExternalMethod(Function *F,
- const std::vector<GenericValue> &ArgVals);
+ GenericValue callExternalFunction(Function *F,
+ const std::vector<GenericValue> &ArgVals);
void exitCalled(GenericValue GV);
- // getCurrentMethod - Return the currently executing method
- inline Function *getCurrentMethod() const {
- return CurFrame < 0 ? 0 : ECStack[CurFrame].CurMethod;
+ // getCurrentFunction - Return the currently executing function
+ inline Function *getCurrentFunction() const {
+ return CurFrame < 0 ? 0 : ECStack[CurFrame].CurFunction;
}
// isStopped - Return true if a program is stopped. Return false if no
@@ -194,7 +194,7 @@ private: // Helper functions
void initializeExecutionEngine();
- void initializeExternalMethods();
+ void initializeExternalFunctions();
};
#endif