[llvm-commits] CVS: llvm/lib/Target/X86/X86CodeEmitter.cpp

Chris Lattner lattner at cs.uiuc.edu
Wed May 3 18:26:53 PDT 2006



Changes in directory llvm/lib/Target/X86:

X86CodeEmitter.cpp updated: 1.105 -> 1.106
---
Log message:

Remove a bunch more dead V9 specific stuff


---
Diffs of the changes:  (+1 -6)

 X86CodeEmitter.cpp |    7 +------
 1 files changed, 1 insertion(+), 6 deletions(-)


Index: llvm/lib/Target/X86/X86CodeEmitter.cpp
diff -u llvm/lib/Target/X86/X86CodeEmitter.cpp:1.105 llvm/lib/Target/X86/X86CodeEmitter.cpp:1.106
--- llvm/lib/Target/X86/X86CodeEmitter.cpp:1.105	Wed May  3 19:49:59 2006
+++ llvm/lib/Target/X86/X86CodeEmitter.cpp	Wed May  3 20:26:39 2006
@@ -432,12 +432,7 @@
     MCE.emitByte(BaseOpcode + getX86RegNum(MI.getOperand(0).getReg()));
     if (MI.getNumOperands() == 2) {
       const MachineOperand &MO1 = MI.getOperand(1);
-      if (Value *V = MO1.getVRegValueOrNull()) {
-        assert(0 && "??");
-        assert(sizeOfImm(Desc) == 4 &&
-               "Don't know how to emit non-pointer values!");
-        emitGlobalAddressForPtr(cast<GlobalValue>(V));
-      } else if (MO1.isGlobalAddress()) {
+      if (MO1.isGlobalAddress()) {
         assert(sizeOfImm(Desc) == 4 &&
                "Don't know how to emit non-pointer values!");
         emitGlobalAddressForPtr(MO1.getGlobal(), MO1.getOffset());






More information about the llvm-commits mailing list