aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/ExecutionEngine/Interpreter/Execution.cpp
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2009-06-26 16:46:15 +0000
committerOwen Anderson <resistor@mac.com>2009-06-26 16:46:15 +0000
commit455df54003677523ab702c564f52d2587a55733e (patch)
treef9d996a3b22ab8f6d3d2f21ddd2fe70c29a8e010 /llvm/lib/ExecutionEngine/Interpreter/Execution.cpp
parent34f7ede9e7b4582fa599797c2d360686177f27da (diff)
downloadllvm-455df54003677523ab702c564f52d2587a55733e.zip
llvm-455df54003677523ab702c564f52d2587a55733e.tar.gz
llvm-455df54003677523ab702c564f52d2587a55733e.tar.bz2
Get rid of unnecessary global variables.
llvm-svn: 74291
Diffstat (limited to 'llvm/lib/ExecutionEngine/Interpreter/Execution.cpp')
-rw-r--r--llvm/lib/ExecutionEngine/Interpreter/Execution.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/llvm/lib/ExecutionEngine/Interpreter/Execution.cpp b/llvm/lib/ExecutionEngine/Interpreter/Execution.cpp
index 7dfeae0..bb3f64e 100644
--- a/llvm/lib/ExecutionEngine/Interpreter/Execution.cpp
+++ b/llvm/lib/ExecutionEngine/Interpreter/Execution.cpp
@@ -29,7 +29,6 @@
using namespace llvm;
STATISTIC(NumDynamicInsts, "Number of dynamic instructions executed");
-static Interpreter *TheEE = 0;
static cl::opt<bool> PrintVolatile("interpreter-print-volatile", cl::Hidden,
cl::desc("make the interpreter print every volatile load and store"));
@@ -51,10 +50,6 @@ static void SetValue(Value *V, GenericValue Val, ExecutionContext &SF) {
SF.Values[V] = Val;
}
-void Interpreter::initializeExecutionEngine() {
- TheEE = this;
-}
-
//===----------------------------------------------------------------------===//
// Binary Instruction Implementations
//===----------------------------------------------------------------------===//
@@ -815,7 +810,7 @@ GenericValue Interpreter::executeGEPOperation(Value *Ptr, gep_type_iterator I,
void Interpreter::visitGetElementPtrInst(GetElementPtrInst &I) {
ExecutionContext &SF = ECStack.back();
- SetValue(&I, TheEE->executeGEPOperation(I.getPointerOperand(),
+ SetValue(&I, executeGEPOperation(I.getPointerOperand(),
gep_type_begin(I), gep_type_end(I), SF), SF);
}