mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-04 21:31:03 +00:00
Fix PR475.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18515 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
bb622c8802
commit
9d272d4953
@ -274,6 +274,10 @@ void *JIT::getPointerToFunctionOrStub(Function *F) {
|
||||
if (void *Addr = getPointerToGlobalIfAvailable(F))
|
||||
return Addr;
|
||||
|
||||
// Get a stub if the target supports it
|
||||
if (void *Addr = TJI.emitFunctionStub(F, *MCE))
|
||||
return Addr;
|
||||
|
||||
// Otherwise, if the target doesn't support it, just codegen the function.
|
||||
return getPointerToFunction(F);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user