summaryrefslogtreecommitdiff
path: root/lib/ExecutionEngine/MCJIT/MCJIT.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-12-05 05:53:12 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-12-05 05:53:12 +0000
commitfac7a9e644f557e0cf75bab1faf7b762395ce1cb (patch)
tree29e89f5f12c82c44dc04b11a2f1880c11f8fce7c /lib/ExecutionEngine/MCJIT/MCJIT.cpp
parent087ab613f42890b2e84fb8a058f346ead2bfd595 (diff)
downloadllvm-fac7a9e644f557e0cf75bab1faf7b762395ce1cb.tar.gz
llvm-fac7a9e644f557e0cf75bab1faf7b762395ce1cb.tar.bz2
llvm-fac7a9e644f557e0cf75bab1faf7b762395ce1cb.tar.xz
Remove the isImplicitlyPrivate argument of getNameWithPrefix.
getSymbolWithGlobalValueBase use is to create a name of a new symbol based on the name of an existing GV. Assert that and then remove the last call to pass true to isImplicitlyPrivate. This gives the mangler API a 1:1 mapping from GV to names, which is what we need to drop the mangler dependency on the target (and use an extended datalayout instead). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196472 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine/MCJIT/MCJIT.cpp')
-rw-r--r--lib/ExecutionEngine/MCJIT/MCJIT.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ExecutionEngine/MCJIT/MCJIT.cpp b/lib/ExecutionEngine/MCJIT/MCJIT.cpp
index 5841d918de..8d9c33f49a 100644
--- a/lib/ExecutionEngine/MCJIT/MCJIT.cpp
+++ b/lib/ExecutionEngine/MCJIT/MCJIT.cpp
@@ -325,7 +325,7 @@ void *MCJIT::getPointerToFunction(Function *F) {
// load address of the symbol, not the local address.
Mangler Mang(TM);
SmallString<128> Name;
- Mang.getNameWithPrefix(Name, F, false);
+ Mang.getNameWithPrefix(Name, F);
return (void*)Dyld.getSymbolLoadAddress(Name);
}