aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/X86
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-07-09 05:42:07 +0000
committerChris Lattner <sabre@nondot.org>2009-07-09 05:42:07 +0000
commit0cc2b7929bf9711b68e0a4faf2ec723b91c8514c (patch)
treee1f7732c55fd95e3e9d1148575abb80d022511c4 /lib/Target/X86
parent48837615c2f1d627a604541f9d02bdce71124711 (diff)
downloadexternal_llvm-0cc2b7929bf9711b68e0a4faf2ec723b91c8514c.zip
external_llvm-0cc2b7929bf9711b68e0a4faf2ec723b91c8514c.tar.gz
external_llvm-0cc2b7929bf9711b68e0a4faf2ec723b91c8514c.tar.bz2
various minor cleanups, no functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75108 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86')
-rw-r--r--lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp b/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp
index f6f486f..ede0fa9 100644
--- a/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp
+++ b/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp
@@ -428,6 +428,10 @@ void X86ATTAsmPrinter::printOperand(const MachineInstr *MI, unsigned OpNo,
needCloseParen = true;
}
+ // Handle dllimport linkage.
+ if (MO.getTargetFlags() == X86II::MO_DLLIMPORT)
+ O << "__imp_";
+
if (Subtarget->isPICStyleStub()) {
// DARWIN/X86-32 in != static mode.
@@ -457,24 +461,20 @@ void X86ATTAsmPrinter::printOperand(const MachineInstr *MI, unsigned OpNo,
PrintPICBaseSymbol();
}
} else {
- // Handle dllimport linkage.
- if (MO.getTargetFlags() == X86II::MO_DLLIMPORT)
- O << "__imp_";
O << Name;
}
- printOffset(MO.getOffset());
-
if (needCloseParen)
O << ')';
+ printOffset(MO.getOffset());
break;
}
case MachineOperand::MO_ExternalSymbol:
/// NOTE: MO_ExternalSymbol in a non-pcrel_imm context is *only* generated
/// by _GLOBAL_OFFSET_TABLE_ on X86-32. All others are call operands, which
/// are pcrel_imm's.
- assert(!Subtarget->is64Bit() && !Subtarget->isPICStyleRIPRel());
+ assert(!Subtarget->is64Bit());
// These are never used as memory operands.
assert(Modifier == 0 || strcmp(Modifier, "mem"));
O << '$';