diff options
author | Chris Lattner <sabre@nondot.org> | 2005-05-19 05:54:33 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-05-19 05:54:33 +0000 |
commit | 16cb6f82eb78a2140fe1cf1e432288fc98cb4ee7 (patch) | |
tree | 9b0943f42c71cedfc00e0922ff9c49c8961cc207 /lib/Target/X86/X86ISelPattern.cpp | |
parent | 6a5d1d42b7b840f081b6aaa78cba45c6bb21d410 (diff) |
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
Diffstat (limited to 'lib/Target/X86/X86ISelPattern.cpp')
-rw-r--r-- | lib/Target/X86/X86ISelPattern.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/X86/X86ISelPattern.cpp b/lib/Target/X86/X86ISelPattern.cpp index 1d30608d34..c3b0e5a611 100644 --- a/lib/Target/X86/X86ISelPattern.cpp +++ b/lib/Target/X86/X86ISelPattern.cpp @@ -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); |