mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-28 03:25:23 +00:00
Removed useless code -- the byte order of output code is correct as is.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6462 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -21,6 +21,7 @@ bool UltraSparc::addPassesToEmitMachineCode(PassManager &PM,
|
|||||||
MachineCodeEmitter *M =
|
MachineCodeEmitter *M =
|
||||||
MachineCodeEmitter::createFilePrinterMachineCodeEmitter(MCE);
|
MachineCodeEmitter::createFilePrinterMachineCodeEmitter(MCE);
|
||||||
PM.add(new SparcV9CodeEmitter(this, *M));
|
PM.add(new SparcV9CodeEmitter(this, *M));
|
||||||
|
PM.add(createMachineCodeDestructionPass()); // Free stuff no longer needed
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -31,12 +32,6 @@ void SparcV9CodeEmitter::emitConstant(unsigned Val, unsigned Size) {
|
|||||||
byteVal = Val >> 8*i;
|
byteVal = Val >> 8*i;
|
||||||
MCE->emitByte(byteVal & 255);
|
MCE->emitByte(byteVal & 255);
|
||||||
}
|
}
|
||||||
#if 0
|
|
||||||
MCE->emitByte((Val >> 16) & 255); // byte 2
|
|
||||||
MCE->emitByte((Val >> 24) & 255); // byte 3
|
|
||||||
MCE->emitByte((Val >> 8) & 255); // byte 1
|
|
||||||
MCE->emitByte(Val & 255); // byte 0
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
unsigned getRealRegNum(unsigned fakeReg, unsigned regClass) {
|
unsigned getRealRegNum(unsigned fakeReg, unsigned regClass) {
|
||||||
|
Reference in New Issue
Block a user