mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-29 13:32:33 +00:00
various minor cleanups, no functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75108 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
74e726e327
commit
35c89618cf
@ -428,6 +428,10 @@ void X86ATTAsmPrinter::printOperand(const MachineInstr *MI, unsigned OpNo,
|
||||
needCloseParen = true;
|
||||
}
|
||||
|
||||
// Handle dllimport linkage.
|
||||
if (MO.getTargetFlags() == X86II::MO_DLLIMPORT)
|
||||
O << "__imp_";
|
||||
|
||||
if (Subtarget->isPICStyleStub()) {
|
||||
// DARWIN/X86-32 in != static mode.
|
||||
|
||||
@ -457,24 +461,20 @@ void X86ATTAsmPrinter::printOperand(const MachineInstr *MI, unsigned OpNo,
|
||||
PrintPICBaseSymbol();
|
||||
}
|
||||
} else {
|
||||
// Handle dllimport linkage.
|
||||
if (MO.getTargetFlags() == X86II::MO_DLLIMPORT)
|
||||
O << "__imp_";
|
||||
O << Name;
|
||||
}
|
||||
|
||||
printOffset(MO.getOffset());
|
||||
|
||||
if (needCloseParen)
|
||||
O << ')';
|
||||
|
||||
printOffset(MO.getOffset());
|
||||
break;
|
||||
}
|
||||
case MachineOperand::MO_ExternalSymbol:
|
||||
/// NOTE: MO_ExternalSymbol in a non-pcrel_imm context is *only* generated
|
||||
/// by _GLOBAL_OFFSET_TABLE_ on X86-32. All others are call operands, which
|
||||
/// are pcrel_imm's.
|
||||
assert(!Subtarget->is64Bit() && !Subtarget->isPICStyleRIPRel());
|
||||
assert(!Subtarget->is64Bit());
|
||||
// These are never used as memory operands.
|
||||
assert(Modifier == 0 || strcmp(Modifier, "mem"));
|
||||
O << '$';
|
||||
|
Loading…
x
Reference in New Issue
Block a user