diff options
author | Evan Cheng <evan.cheng@apple.com> | 2008-01-03 02:56:28 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2008-01-03 02:56:28 +0000 |
commit | 563fcc34284fdb65c5009439e5243dcc8d149474 (patch) | |
tree | ec70b4ba7b3734a0a8a0fdc301bcacbf77115247 /llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp | |
parent | e35604ddb2d14fba566dba04bfee042be4b65dd1 (diff) | |
download | bcm5719-llvm-563fcc34284fdb65c5009439e5243dcc8d149474.tar.gz bcm5719-llvm-563fcc34284fdb65c5009439e5243dcc8d149474.zip |
Change MachineRelocation::DoesntNeedFnStub to NeedStub. This fields will be used
for non-function GV relocations that require function address stubs (e.g. Mac OS X in non-static mode).
llvm-svn: 45527
Diffstat (limited to 'llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp')
-rw-r--r-- | llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp b/llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp index af17405c8e7..beeca3b0f65 100644 --- a/llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp +++ b/llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp @@ -444,12 +444,12 @@ bool JITEmitter::finishFunction(MachineFunction &F) { ResultPtr = TheJIT->getPointerToNamedFunction(MR.getString()); // If the target REALLY wants a stub for this function, emit it now. - if (!MR.doesntNeedFunctionStub()) + if (!MR.doesntNeedStub()) ResultPtr = Resolver.getExternalFunctionStub(ResultPtr); } else if (MR.isGlobalValue()) { ResultPtr = getPointerToGlobal(MR.getGlobalValue(), BufferBegin+MR.getMachineCodeOffset(), - MR.doesntNeedFunctionStub()); + MR.doesntNeedStub()); } else if (MR.isBasicBlock()) { ResultPtr = (void*)getMachineBasicBlockAddress(MR.getBasicBlock()); } else if (MR.isConstantPoolIndex()) { |