mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-14 09:25:25 +00:00
Generate correct stubs for weak-linked symbols
llvm-svn: 17101
This commit is contained in:
parent
c088680a5f
commit
1c408f7319
@ -366,8 +366,9 @@ void PowerPCAsmPrinter::printOp(const MachineOperand &MO,
|
||||
return;
|
||||
}
|
||||
|
||||
// External global variables need a non-lazily-resolved stub
|
||||
if (GV->isExternal() && getTM().AddressTaken.count(GV)) {
|
||||
// External or weakly linked global variables need non-lazily-resolved stubs
|
||||
if ((GV->isExternal() || GV->hasWeakLinkage()) &&
|
||||
getTM().AddressTaken.count(GV)) {
|
||||
GVStubs.insert(Name);
|
||||
O << "L" << Name << "$non_lazy_ptr";
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user