summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ExecutionEngine/MCJIT
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2014-02-19 12:26:01 +0000
committerDaniel Jasper <djasper@google.com>2014-02-19 12:26:01 +0000
commit7e198ad862cddf373edcb51801a9800c4637d52e (patch)
tree7a97a155d36e3ccc331ec56d3e18a7eefae5c408 /llvm/lib/ExecutionEngine/MCJIT
parentd495642c5410f11345c03fcaa35fd346ad9ab207 (diff)
downloadbcm5719-llvm-7e198ad862cddf373edcb51801a9800c4637d52e.tar.gz
bcm5719-llvm-7e198ad862cddf373edcb51801a9800c4637d52e.zip
Revert r201622 and r201608.
This causes the LLVMgold plugin to segfault. More information on the replies to r201608. llvm-svn: 201669
Diffstat (limited to 'llvm/lib/ExecutionEngine/MCJIT')
-rw-r--r--llvm/lib/ExecutionEngine/MCJIT/MCJIT.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/ExecutionEngine/MCJIT/MCJIT.cpp b/llvm/lib/ExecutionEngine/MCJIT/MCJIT.cpp
index 4d5723a7a13..4eaeb7a1d5c 100644
--- a/llvm/lib/ExecutionEngine/MCJIT/MCJIT.cpp
+++ b/llvm/lib/ExecutionEngine/MCJIT/MCJIT.cpp
@@ -27,7 +27,6 @@
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/MemoryBuffer.h"
#include "llvm/Support/MutexGuard.h"
-#include "llvm/Target/TargetLowering.h"
using namespace llvm;
@@ -372,7 +371,7 @@ void *MCJIT::getPointerToFunction(Function *F) {
// load address of the symbol, not the local address.
Mangler Mang(TM->getDataLayout());
SmallString<128> Name;
- TM->getTargetLowering()->getNameWithPrefix(Name, F, Mang);
+ Mang.getNameWithPrefix(Name, F);
return (void*)Dyld.getSymbolLoadAddress(Name);
}
OpenPOWER on IntegriCloud