mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-01 00:17:01 +00:00
InstSelectSimple.cpp: Give promote32 a comment. Add initial
implementation of getReg() for arguments. MachineCodeEmitter.cpp: Fix using EBP with index, scale and no displacement (whew!) due to Chris. Printer.cpp: Fix printing out index and scale in memory references. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4998 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -148,8 +148,8 @@ static void printMemReference(std::ostream &O, const MachineInstr *MI,
|
||||
|
||||
if (IndexReg.getReg()) {
|
||||
if (NeedPlus) O << " + ";
|
||||
if (IndexReg.getImmedValue() != 1)
|
||||
O << IndexReg.getImmedValue() << "*";
|
||||
if (Scale.getImmedValue() != 1)
|
||||
O << Scale.getImmedValue() << "*";
|
||||
printOp(O, IndexReg, RI);
|
||||
NeedPlus = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user