mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-06 03:38:34 +00:00
Restore sanity to 131601.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@131603 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e37234739e
commit
e0b58634a1
@ -104,10 +104,11 @@ void *MCJIT::getPointerToFunction(Function *F) {
|
||||
|
||||
// FIXME: Should we be using the mangler for this? Probably.
|
||||
StringRef BaseName = F->getName();
|
||||
Twine Name;
|
||||
if (BaseName[0] == '\1')
|
||||
BaseName = BaseName.substr(1);
|
||||
Name = BaseName.substr(1);
|
||||
else
|
||||
Twine Name = TM->getMCAsmInfo()->getGlobalPrefix() + BaseName;
|
||||
Name = TM->getMCAsmInfo()->getGlobalPrefix() + BaseName;
|
||||
return (void*)Dyld.getSymbolAddress(Name.str());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user