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
This commit is contained in:
Chris Lattner 2009-07-09 00:47:59 +00:00
parent 2e4284de53
commit 033bcee4ef

View File

@ -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)) {