mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-22 10:33:23 +00:00
Use correct name for TLS address resolution routine on x86-64
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54845 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
328da65bd1
commit
d97f29531c
@ -4320,14 +4320,14 @@ LowerToTLSGeneralDynamicModel64(GlobalAddressSDNode *GA, SelectionDAG &DAG,
|
|||||||
Chain = Result.getValue(1);
|
Chain = Result.getValue(1);
|
||||||
InFlag = Result.getValue(2);
|
InFlag = Result.getValue(2);
|
||||||
|
|
||||||
// call ___tls_get_addr. This function receives its argument in
|
// call __tls_get_addr. This function receives its argument in
|
||||||
// the register RDI.
|
// the register RDI.
|
||||||
Chain = DAG.getCopyToReg(Chain, X86::RDI, Result, InFlag);
|
Chain = DAG.getCopyToReg(Chain, X86::RDI, Result, InFlag);
|
||||||
InFlag = Chain.getValue(1);
|
InFlag = Chain.getValue(1);
|
||||||
|
|
||||||
NodeTys = DAG.getVTList(MVT::Other, MVT::Flag);
|
NodeTys = DAG.getVTList(MVT::Other, MVT::Flag);
|
||||||
SDValue Ops1[] = { Chain,
|
SDValue Ops1[] = { Chain,
|
||||||
DAG.getTargetExternalSymbol("___tls_get_addr",
|
DAG.getTargetExternalSymbol("__tls_get_addr",
|
||||||
PtrVT),
|
PtrVT),
|
||||||
DAG.getRegister(X86::RDI, PtrVT),
|
DAG.getRegister(X86::RDI, PtrVT),
|
||||||
InFlag };
|
InFlag };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user