[llvm-commits] CVS: llvm/lib/Target/Sparc/SparcV9CodeEmitter.cpp

Misha Brukman brukman at cs.uiuc.edu
Sat May 31 01:27:11 PDT 2003


Changes in directory llvm/lib/Target/Sparc:

SparcV9CodeEmitter.cpp updated: 1.5 -> 1.6

---
Log message:

Removed useless code -- the byte order of output code is correct as is.


---
Diffs of the changes:

Index: llvm/lib/Target/Sparc/SparcV9CodeEmitter.cpp
diff -u llvm/lib/Target/Sparc/SparcV9CodeEmitter.cpp:1.5 llvm/lib/Target/Sparc/SparcV9CodeEmitter.cpp:1.6
--- llvm/lib/Target/Sparc/SparcV9CodeEmitter.cpp:1.5	Fri May 30 15:17:33 2003
+++ llvm/lib/Target/Sparc/SparcV9CodeEmitter.cpp	Sat May 31 01:26:06 2003
@@ -21,6 +21,7 @@
   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 @@
     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) {





More information about the llvm-commits mailing list