mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-14 15:38:57 +00:00
Implement JIT support for global aliases, patch by David Chisnall!
llvm-svn: 52738
This commit is contained in:
parent
5ed0e42cc3
commit
9c5a1a7da3
@ -551,6 +551,8 @@ void *JITEmitter::getPointerToGlobal(GlobalValue *V, void *Reference,
|
||||
/// global immediately instead of queuing it for codegen later!
|
||||
return TheJIT->getOrEmitGlobalVariable(GV);
|
||||
}
|
||||
if (GlobalAlias *GA = dyn_cast<GlobalAlias>(V))
|
||||
return TheJIT->getPointerToGlobal(GA->resolveAliasedGlobal());
|
||||
|
||||
// If we have already compiled the function, return a pointer to its body.
|
||||
Function *F = cast<Function>(V);
|
||||
|
Loading…
x
Reference in New Issue
Block a user