aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMisha Brukman <brukman+llvm@gmail.com>2003-05-31 06:26:06 +0000
committerMisha Brukman <brukman+llvm@gmail.com>2003-05-31 06:26:06 +0000
commitdcbe71284190929a36c8587b25c317ea40f299d7 (patch)
treede65486c1c00ef60a955ed7da5b41f402b524086
parent33cc12319c02c4be933222f2ed5145d3c80718fd (diff)
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
-rw-r--r--lib/Target/SparcV9/SparcV9CodeEmitter.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/Target/SparcV9/SparcV9CodeEmitter.cpp b/lib/Target/SparcV9/SparcV9CodeEmitter.cpp
index bf6073b274..e34ace67a3 100644
--- a/lib/Target/SparcV9/SparcV9CodeEmitter.cpp
+++ b/lib/Target/SparcV9/SparcV9CodeEmitter.cpp
@@ -21,6 +21,7 @@ bool UltraSparc::addPassesToEmitMachineCode(PassManager &PM,
MachineCodeEmitter *M =
MachineCodeEmitter::createFilePrinterMachineCodeEmitter(MCE);
PM.add(new SparcV9CodeEmitter(this, *M));
+ PM.add(createMachineCodeDestructionPass()); // Free stuff no longer needed
return false;
}
@@ -31,12 +32,6 @@ void SparcV9CodeEmitter::emitConstant(unsigned Val, unsigned Size) {
byteVal = Val >> 8*i;
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) {