mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-25 21:18:19 +00:00
Eliminate all remaining tabs and trailing spaces.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22523 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -77,7 +77,7 @@ void Interpreter::runAtExitHandlers () {
|
||||
|
||||
/// run - Start execution with the specified function and arguments.
|
||||
///
|
||||
GenericValue
|
||||
GenericValue
|
||||
Interpreter::runFunction(Function *F,
|
||||
const std::vector<GenericValue> &ArgValues) {
|
||||
assert (F && "Function *F was null at entry to run()");
|
||||
|
||||
@@ -218,7 +218,7 @@ GenericValue JIT::runFunction(Function *F,
|
||||
void JIT::runJITOnFunction(Function *F) {
|
||||
static bool isAlreadyCodeGenerating = false;
|
||||
assert(!isAlreadyCodeGenerating && "Error: Recursive compilation detected!");
|
||||
|
||||
|
||||
MutexGuard locked(lock);
|
||||
|
||||
// JIT the function
|
||||
|
||||
@@ -147,19 +147,19 @@ namespace {
|
||||
/// 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 @@ namespace {
|
||||
|
||||
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 @@ void JITEmitter::finishFunction(MachineFunction &F) {
|
||||
// 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
|
||||
|
||||
Reference in New Issue
Block a user