aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNate Begeman <natebegeman@mac.com>2005-07-12 18:34:58 +0000
committerNate Begeman <natebegeman@mac.com>2005-07-12 18:34:58 +0000
commitd3a490a08e8aa43280198ef0003c334d2c357545 (patch)
tree66071b875348b37646072c8c8282d97b41cd64d7
parent63b3f9acae5ccfc7f806c461a2e9509318eac5b8 (diff)
Check in the last of the darwin-specific code necessary to get shootout
working before modifying the asm printer to use the subtarget info. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22408 91177308-0d34-0410-b5e6-96231b3b80d8
-rwxr-xr-xlib/Target/X86/X86ATTAsmPrinter.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/lib/Target/X86/X86ATTAsmPrinter.cpp b/lib/Target/X86/X86ATTAsmPrinter.cpp
index bb606f1ce7..ca8630c3cb 100755
--- a/lib/Target/X86/X86ATTAsmPrinter.cpp
+++ b/lib/Target/X86/X86ATTAsmPrinter.cpp
@@ -101,22 +101,22 @@ void X86ATTAsmPrinter::printOp(const MachineOperand &MO, bool isCallOp) {
if (F && isCallOp && F->isExternal()) {
FnStubs.insert(Name);
O << "L" << Name << "$stub";
- return;
- }
-
- // Link-once, External, or Weakly-linked global variables need
- // non-lazily-resolved stubs
- if (GV->hasLinkOnceLinkage()) {
+ } else if (GV->hasLinkOnceLinkage()) {
+ // Link-once, External, or Weakly-linked global variables need
+ // non-lazily-resolved stubs
LinkOnceStubs.insert(Name);
O << "L" << Name << "$non_lazy_ptr";
- return;
- }
- if (GV->isExternal() || GV->hasWeakLinkage()) {
+ } else if (GV->isExternal() || GV->hasWeakLinkage()) {
GVStubs.insert(Name);
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;
}
if (!isCallOp) O << '$';