mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-23 20:45:06 +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);
|
||||
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.
|
||||
Chain = DAG.getCopyToReg(Chain, X86::RDI, Result, InFlag);
|
||||
InFlag = Chain.getValue(1);
|
||||
|
||||
NodeTys = DAG.getVTList(MVT::Other, MVT::Flag);
|
||||
SDValue Ops1[] = { Chain,
|
||||
DAG.getTargetExternalSymbol("___tls_get_addr",
|
||||
DAG.getTargetExternalSymbol("__tls_get_addr",
|
||||
PtrVT),
|
||||
DAG.getRegister(X86::RDI, PtrVT),
|
||||
InFlag };
|
||||
|
Loading…
Reference in New Issue
Block a user