mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-09 10:31:14 +00:00
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:
parent
2e4284de53
commit
033bcee4ef
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user