mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
Tailcalls require stubs to be emitted. Otherwise, the compilation callback
doesn't know who 'called' it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22136 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -3918,7 +3918,7 @@ void ISel::EmitFastCCToFastCCTailCall(SDNode *TailCallNode) {
|
||||
if (!isDirect) {
|
||||
BuildMI(BB, X86::TAILJMPr, 1).addReg(CalleeReg);
|
||||
} else if (GlobalAddressSDNode *GASD = dyn_cast<GlobalAddressSDNode>(Callee)){
|
||||
BuildMI(BB, X86::TAILJMPd, 1).addGlobalAddress(GASD->getGlobal(),true);
|
||||
BuildMI(BB, X86::TAILJMPd, 1).addGlobalAddress(GASD->getGlobal(), true);
|
||||
} else {
|
||||
ExternalSymbolSDNode *ESSDN = cast<ExternalSymbolSDNode>(Callee);
|
||||
BuildMI(BB, X86::TAILJMPd, 1).addExternalSymbol(ESSDN->getSymbol(), true);
|
||||
|
Reference in New Issue
Block a user