mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-17 06:33:21 +00:00
remove dead code, frameindices must be resolve before the asmprinter runs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33187 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1034a3928d
commit
ae77c7b47a
@ -388,14 +388,6 @@ void X86ATTAsmPrinter::printMemReference(const MachineInstr *MI, unsigned Op,
|
||||
const MachineOperand &IndexReg = MI->getOperand(Op+2);
|
||||
const MachineOperand &DispSpec = MI->getOperand(Op+3);
|
||||
|
||||
if (BaseReg.isFrameIndex()) {
|
||||
O << "[frame slot #" << BaseReg.getFrameIndex();
|
||||
if (DispSpec.getImmedValue())
|
||||
O << " + " << DispSpec.getImmedValue();
|
||||
O << "]";
|
||||
return;
|
||||
}
|
||||
|
||||
bool NotRIPRel = IndexReg.getReg() || BaseReg.getReg();
|
||||
if (DispSpec.isGlobalAddress() ||
|
||||
DispSpec.isConstantPoolIndex() ||
|
||||
|
@ -199,14 +199,6 @@ void X86IntelAsmPrinter::printMemReference(const MachineInstr *MI, unsigned Op,
|
||||
const MachineOperand &IndexReg = MI->getOperand(Op+2);
|
||||
const MachineOperand &DispSpec = MI->getOperand(Op+3);
|
||||
|
||||
if (BaseReg.isFrameIndex()) {
|
||||
O << "[frame slot #" << BaseReg.getFrameIndex();
|
||||
if (DispSpec.getImmedValue())
|
||||
O << " + " << DispSpec.getImmedValue();
|
||||
O << "]";
|
||||
return;
|
||||
}
|
||||
|
||||
O << "[";
|
||||
bool NeedPlus = false;
|
||||
if (BaseReg.getReg()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user