1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 19:42:54 +02:00

Check in the last of the darwin-specific code necessary to get shootout

working before modifying the asm printer to use the subtarget info.

llvm-svn: 22408
This commit is contained in:
Nate Begeman 2005-07-12 18:34:58 +00:00
parent be4b78ff53
commit 7330d9cd80

View File

@ -101,22 +101,22 @@ void X86ATTAsmPrinter::printOp(const MachineOperand &MO, bool isCallOp) {
if (F && isCallOp && F->isExternal()) { if (F && isCallOp && F->isExternal()) {
FnStubs.insert(Name); FnStubs.insert(Name);
O << "L" << Name << "$stub"; O << "L" << Name << "$stub";
return; } else if (GV->hasLinkOnceLinkage()) {
} // Link-once, External, or Weakly-linked global variables need
// non-lazily-resolved stubs
// Link-once, External, or Weakly-linked global variables need
// non-lazily-resolved stubs
if (GV->hasLinkOnceLinkage()) {
LinkOnceStubs.insert(Name); LinkOnceStubs.insert(Name);
O << "L" << Name << "$non_lazy_ptr"; O << "L" << Name << "$non_lazy_ptr";
return; } else if (GV->isExternal() || GV->hasWeakLinkage()) {
}
if (GV->isExternal() || GV->hasWeakLinkage()) {
GVStubs.insert(Name); GVStubs.insert(Name);
O << "L" << Name << "$non_lazy_ptr"; O << "L" << Name << "$non_lazy_ptr";
return; } else {
O << Mang->getValueName(GV);
} }
O << Mang->getValueName(GV); int Offset = MO.getOffset();
if (Offset > 0)
O << "+" << Offset;
else if (Offset < 0)
O << Offset;
return; return;
} }
if (!isCallOp) O << '$'; if (!isCallOp) O << '$';