From: Chris Lattner Date: Thu, 9 Jul 2009 00:47:59 +0000 (+0000) Subject: add some more assertions. Remove code to handle dllimport on darwin. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=033bcee4efee6fd2b8f3eda5eda3dab9c8b30e18;p=oota-llvm.git add some more assertions. Remove code to handle dllimport on darwin. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75082 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp b/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp index 3c395a68724..3ae88eaffa5 100644 --- a/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp +++ b/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp @@ -332,6 +332,7 @@ void X86ATTAsmPrinter::print_pcrel_imm(const MachineInstr *MI, unsigned OpNo) { FnStubs.insert(Name); printSuffixedName(Name, "$stub"); } + assert(MO.getTargetFlags() == 0); } else if (GV->hasHiddenVisibility()) { if (!GV->isDeclaration() && !GV->hasCommonLinkage()) // Definition is not definitely in the current translation unit. @@ -339,19 +340,21 @@ void X86ATTAsmPrinter::print_pcrel_imm(const MachineInstr *MI, unsigned OpNo) { else { HiddenGVStubs.insert(Name); printSuffixedName(Name, "$non_lazy_ptr"); + assert(MO.getTargetFlags() == 0); } } else { GVStubs.insert(Name); printSuffixedName(Name, "$non_lazy_ptr"); + assert(MO.getTargetFlags() == 0); } } else { - if (GV->hasDLLImportLinkage()) - O << "__imp_"; O << Name; } } else { - if (GV->hasDLLImportLinkage()) + if (GV->hasDLLImportLinkage()) { + assert(MO.getTargetFlags() == 0); O << "__imp_"; + } O << Name; if (shouldPrintPLT(TM, Subtarget)) {