From 662b805a0afa51d50be64e92f1bcf84eb95bcf0e Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 10 Jul 2009 07:50:52 +0000 Subject: [PATCH] make this more like printOperand. Perhaps some merging will happen tomorrow. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75245 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp b/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp index 4d1d17f3743..afde3a847f2 100644 --- a/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp +++ b/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp @@ -311,9 +311,8 @@ void X86ATTAsmPrinter::print_pcrel_imm(const MachineInstr *MI, unsigned OpNo) { // Handle dllimport linkage. if (MO.getTargetFlags() == X86II::MO_DLLIMPORT) - O << "__imp_"; - - if (MO.getTargetFlags() == X86II::MO_DARWIN_STUB) { + O << "__imp_" << Name; + else if (MO.getTargetFlags() == X86II::MO_DARWIN_STUB) { FnStubs.insert(Name); printSuffixedName(Name, "$stub"); } else { -- 2.34.1