1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00

Get rid of unnecessary global variables.

llvm-svn: 74291
This commit is contained in:
Owen Anderson 2009-06-26 16:46:15 +00:00
parent b2c485c6bd
commit 6448beadc8
2 changed files with 2 additions and 7 deletions

View File

@ -29,7 +29,6 @@
using namespace llvm; using namespace llvm;
STATISTIC(NumDynamicInsts, "Number of dynamic instructions executed"); STATISTIC(NumDynamicInsts, "Number of dynamic instructions executed");
static Interpreter *TheEE = 0;
static cl::opt<bool> PrintVolatile("interpreter-print-volatile", cl::Hidden, static cl::opt<bool> PrintVolatile("interpreter-print-volatile", cl::Hidden,
cl::desc("make the interpreter print every volatile load and store")); 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; SF.Values[V] = Val;
} }
void Interpreter::initializeExecutionEngine() {
TheEE = this;
}
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
// Binary Instruction Implementations // Binary Instruction Implementations
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
@ -815,7 +810,7 @@ GenericValue Interpreter::executeGEPOperation(Value *Ptr, gep_type_iterator I,
void Interpreter::visitGetElementPtrInst(GetElementPtrInst &I) { void Interpreter::visitGetElementPtrInst(GetElementPtrInst &I) {
ExecutionContext &SF = ECStack.back(); 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); gep_type_begin(I), gep_type_end(I), SF), SF);
} }

View File

@ -202,7 +202,7 @@ private: // Helper functions
void *getPointerToFunction(Function *F) { return (void*)F; } void *getPointerToFunction(Function *F) { return (void*)F; }
void initializeExecutionEngine(); void initializeExecutionEngine() { }
void initializeExternalFunctions(); void initializeExternalFunctions();
GenericValue getConstantExprValue(ConstantExpr *CE, ExecutionContext &SF); GenericValue getConstantExprValue(ConstantExpr *CE, ExecutionContext &SF);
GenericValue getOperandValue(Value *V, ExecutionContext &SF); GenericValue getOperandValue(Value *V, ExecutionContext &SF);