summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ExecutionEngine
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2008-11-08 07:37:34 +0000
committerEvan Cheng <evan.cheng@apple.com>2008-11-08 07:37:34 +0000
commit1b889b16da3d57697d89586c3e89b48d50e1c46b (patch)
tree3d6bc851c87e772cbdc7ba62d604ac2c06223366 /llvm/lib/ExecutionEngine
parent776f5922fb005799e70db2783ea60ba2d62cd383 (diff)
downloadbcm5719-llvm-1b889b16da3d57697d89586c3e89b48d50e1c46b.tar.gz
bcm5719-llvm-1b889b16da3d57697d89586c3e89b48d50e1c46b.zip
Rename isString -> isExternalSymbol; getString -> getExternalSymbol since these work on externsym machine relocations.
llvm-svn: 58895
Diffstat (limited to 'llvm/lib/ExecutionEngine')
-rw-r--r--llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp b/llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp
index ce3df8a783f..9062cee84ee 100644
--- a/llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp
+++ b/llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp
@@ -885,9 +885,9 @@ bool JITEmitter::finishFunction(MachineFunction &F) {
MachineRelocation &MR = Relocations[i];
void *ResultPtr = 0;
if (!MR.letTargetResolve()) {
- if (MR.isString()) {
- ResultPtr = TheJIT->getPointerToNamedFunction(MR.getString());
- DOUT << "JIT: Map \'" << MR.getString() << "\' to ["
+ if (MR.isExternalSymbol()) {
+ ResultPtr = TheJIT->getPointerToNamedFunction(MR.getExternalSymbol());
+ DOUT << "JIT: Map \'" << MR.getExternalSymbol() << "\' to ["
<< ResultPtr << "]\n";
// If the target REALLY wants a stub for this function, emit it now.
OpenPOWER on IntegriCloud