diff options
author | Chris Lattner <sabre@nondot.org> | 2007-04-20 22:40:05 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-04-20 22:40:05 +0000 |
commit | 2c639add5f54ba0d0d59771e16d0582f6c59b8be (patch) | |
tree | 7a8e6d180b761df4dab7b53d0bc0c1bbf2052660 /lib/ExecutionEngine | |
parent | a5f5a9c8e27c4fc32ccca1bb2dad0fcd295a64b7 (diff) | |
download | external_llvm-2c639add5f54ba0d0d59771e16d0582f6c59b8be.zip external_llvm-2c639add5f54ba0d0d59771e16d0582f6c59b8be.tar.gz external_llvm-2c639add5f54ba0d0d59771e16d0582f6c59b8be.tar.bz2 |
rename JIT::state -> JIT::jitstate to avoid shadowing ExecutionEngine::state
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36286 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine')
-rw-r--r-- | lib/ExecutionEngine/JIT/JIT.cpp | 14 | ||||
-rw-r--r-- | lib/ExecutionEngine/JIT/JIT.h | 2 |
2 files changed, 8 insertions, 8 deletions
diff --git a/lib/ExecutionEngine/JIT/JIT.cpp b/lib/ExecutionEngine/JIT/JIT.cpp index b7a0c9d..cb698c3 100644 --- a/lib/ExecutionEngine/JIT/JIT.cpp +++ b/lib/ExecutionEngine/JIT/JIT.cpp @@ -50,7 +50,7 @@ namespace llvm { } JIT::JIT(ModuleProvider *MP, TargetMachine &tm, TargetJITInfo &tji) - : ExecutionEngine(MP), TM(tm), TJI(tji), state(MP) { + : ExecutionEngine(MP), TM(tm), TJI(tji), jitstate(MP) { setTargetData(TM.getTargetData()); // Initialize MCE @@ -58,7 +58,7 @@ JIT::JIT(ModuleProvider *MP, TargetMachine &tm, TargetJITInfo &tji) // Add target data MutexGuard locked(lock); - FunctionPassManager &PM = state.getPM(locked); + FunctionPassManager &PM = jitstate.getPM(locked); PM.add(new TargetData(*TM.getTargetData())); // Turn the machine code intermediate representation into bytes in memory that @@ -235,15 +235,15 @@ void JIT::runJITOnFunction(Function *F) { // JIT the function isAlreadyCodeGenerating = true; - state.getPM(locked).run(*F); + jitstate.getPM(locked).run(*F); isAlreadyCodeGenerating = false; // If the function referred to a global variable that had not yet been // emitted, it allocates memory for the global, but doesn't emit it yet. Emit // all of these globals now. - while (!state.getPendingGlobals(locked).empty()) { - const GlobalVariable *GV = state.getPendingGlobals(locked).back(); - state.getPendingGlobals(locked).pop_back(); + while (!jitstate.getPendingGlobals(locked).empty()) { + const GlobalVariable *GV = jitstate.getPendingGlobals(locked).back(); + jitstate.getPendingGlobals(locked).pop_back(); EmitGlobalVariable(GV); } } @@ -335,7 +335,7 @@ void *JIT::getOrEmitGlobalVariable(const GlobalVariable *GV) { unsigned MisAligned = ((intptr_t)Ptr & (A-1)); Ptr = (char*)Ptr + (MisAligned ? (A-MisAligned) : 0); } - state.getPendingGlobals(locked).push_back(GV); + jitstate.getPendingGlobals(locked).push_back(GV); } addGlobalMapping(GV, Ptr); return Ptr; diff --git a/lib/ExecutionEngine/JIT/JIT.h b/lib/ExecutionEngine/JIT/JIT.h index 95105c9..74a036f 100644 --- a/lib/ExecutionEngine/JIT/JIT.h +++ b/lib/ExecutionEngine/JIT/JIT.h @@ -54,7 +54,7 @@ class JIT : public ExecutionEngine { TargetJITInfo &TJI; // The JITInfo for the target we are compiling to MachineCodeEmitter *MCE; // MCE object - JITState state; + JITState jitstate; JIT(ModuleProvider *MP, TargetMachine &tm, TargetJITInfo &tji); public: |