[llvm-commits] CVS: llvm/lib/ExecutionEngine/JIT/JIT.cpp JITEmitter.cpp
Jeff Cohen
jeffc at jolt-lang.org
Tue Jul 26 23:12:58 PDT 2005
Changes in directory llvm/lib/ExecutionEngine/JIT:
JIT.cpp updated: 1.56 -> 1.57
JITEmitter.cpp updated: 1.71 -> 1.72
---
Log message:
Eliminate all remaining tabs and trailing spaces.
---
Diffs of the changes: (+11 -11)
JIT.cpp | 2 +-
JITEmitter.cpp | 20 ++++++++++----------
2 files changed, 11 insertions(+), 11 deletions(-)
Index: llvm/lib/ExecutionEngine/JIT/JIT.cpp
diff -u llvm/lib/ExecutionEngine/JIT/JIT.cpp:1.56 llvm/lib/ExecutionEngine/JIT/JIT.cpp:1.57
--- llvm/lib/ExecutionEngine/JIT/JIT.cpp:1.56 Tue Jul 12 10:51:55 2005
+++ llvm/lib/ExecutionEngine/JIT/JIT.cpp Wed Jul 27 01:12:33 2005
@@ -218,7 +218,7 @@
void JIT::runJITOnFunction(Function *F) {
static bool isAlreadyCodeGenerating = false;
assert(!isAlreadyCodeGenerating && "Error: Recursive compilation detected!");
-
+
MutexGuard locked(lock);
// JIT the function
Index: llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp
diff -u llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp:1.71 llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp:1.72
--- llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp:1.71 Mon Jul 25 18:42:58 2005
+++ llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp Wed Jul 27 01:12:33 2005
@@ -147,19 +147,19 @@
/// StubToFunctionMap - Keep track of the function that each stub
/// corresponds to.
std::map<void*, Function*> StubToFunctionMap;
-
+
public:
std::map<Function*, void*>& getFunctionToStubMap(const MutexGuard& locked) {
assert(locked.holds(TheJIT->lock));
return FunctionToStubMap;
}
-
+
std::map<void*, Function*>& getStubToFunctionMap(const MutexGuard& locked) {
assert(locked.holds(TheJIT->lock));
return StubToFunctionMap;
}
};
-
+
/// JITResolver - Keep track of, and resolve, call sites for functions that
/// have not yet been compiled.
class JITResolver {
@@ -340,12 +340,12 @@
public:
JITEmitter(JIT &jit)
- :MemMgr(jit.getJITInfo().needsGOT()),
+ :MemMgr(jit.getJITInfo().needsGOT()),
nextGOTIndex(0)
{
- TheJIT = &jit;
- DEBUG(std::cerr <<
- (MemMgr.isManagingGOT() ? "JIT is managing GOT\n"
+ TheJIT = &jit;
+ DEBUG(std::cerr <<
+ (MemMgr.isManagingGOT() ? "JIT is managing GOT\n"
: "JIT is not managing GOT\n"));
}
@@ -431,14 +431,14 @@
// If the target REALLY wants a stub for this function, emit it now.
if (!MR.doesntNeedFunctionStub())
ResultPtr = getJITResolver(this).getExternalFunctionStub(ResultPtr);
- } else if (MR.isGlobalValue())
+ } else if (MR.isGlobalValue())
ResultPtr = getPointerToGlobal(MR.getGlobalValue(),
CurBlock+MR.getMachineCodeOffset(),
MR.doesntNeedFunctionStub());
else //ConstantPoolIndex
- ResultPtr =
+ ResultPtr =
(void*)(intptr_t)getConstantPoolEntryAddress(MR.getConstantPoolIndex());
-
+
MR.setResultPointer(ResultPtr);
// if we are managing the got, check to see if this pointer has all ready
More information about the llvm-commits
mailing list