mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
Restore sanity to 131601.
llvm-svn: 131603
This commit is contained in:
parent
587fa89510
commit
35c032eb5e
@ -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