mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-10 02:36:06 +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);
|
FnStubs.insert(Name);
|
||||||
printSuffixedName(Name, "$stub");
|
printSuffixedName(Name, "$stub");
|
||||||
}
|
}
|
||||||
|
assert(MO.getTargetFlags() == 0);
|
||||||
} else if (GV->hasHiddenVisibility()) {
|
} else if (GV->hasHiddenVisibility()) {
|
||||||
if (!GV->isDeclaration() && !GV->hasCommonLinkage())
|
if (!GV->isDeclaration() && !GV->hasCommonLinkage())
|
||||||
// Definition is not definitely in the current translation unit.
|
// Definition is not definitely in the current translation unit.
|
||||||
@ -339,19 +340,21 @@ void X86ATTAsmPrinter::print_pcrel_imm(const MachineInstr *MI, unsigned OpNo) {
|
|||||||
else {
|
else {
|
||||||
HiddenGVStubs.insert(Name);
|
HiddenGVStubs.insert(Name);
|
||||||
printSuffixedName(Name, "$non_lazy_ptr");
|
printSuffixedName(Name, "$non_lazy_ptr");
|
||||||
|
assert(MO.getTargetFlags() == 0);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
GVStubs.insert(Name);
|
GVStubs.insert(Name);
|
||||||
printSuffixedName(Name, "$non_lazy_ptr");
|
printSuffixedName(Name, "$non_lazy_ptr");
|
||||||
|
assert(MO.getTargetFlags() == 0);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (GV->hasDLLImportLinkage())
|
|
||||||
O << "__imp_";
|
|
||||||
O << Name;
|
O << Name;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (GV->hasDLLImportLinkage())
|
if (GV->hasDLLImportLinkage()) {
|
||||||
|
assert(MO.getTargetFlags() == 0);
|
||||||
O << "__imp_";
|
O << "__imp_";
|
||||||
|
}
|
||||||
O << Name;
|
O << Name;
|
||||||
|
|
||||||
if (shouldPrintPLT(TM, Subtarget)) {
|
if (shouldPrintPLT(TM, Subtarget)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user