Changes in directory llvm/lib/Bytecode/Writer:

SlotCalculator.cpp updated: 1.88 -> 1.89
---
Log message:

merge insertValue into its single caller, eliminate some redundant checks.


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

 SlotCalculator.cpp |   13 +------------
 1 files changed, 1 insertion(+), 12 deletions(-)


Index: llvm/lib/Bytecode/Writer/SlotCalculator.cpp
diff -u llvm/lib/Bytecode/Writer/SlotCalculator.cpp:1.88 
llvm/lib/Bytecode/Writer/SlotCalculator.cpp:1.89
--- llvm/lib/Bytecode/Writer/SlotCalculator.cpp:1.88    Fri Feb  9 22:22:30 2007
+++ llvm/lib/Bytecode/Writer/SlotCalculator.cpp Fri Feb  9 22:25:02 2007
@@ -367,19 +367,8 @@
       }
     }
 
-  return insertValue(V);
-}
-
-int SlotCalculator::insertValue(const Value *V) {
-  assert(V && "Can't insert a null value!");
-  assert(getSlot(V) == -1 && "Value is already in the table!");
-
-  // If this node does not contribute to a plane, ignore the node.
   const Type *Typ = V->getType();
-  if (Typ == Type::VoidTy) {         // Ignore void type nodes
-    SC_DEBUG("ignored value " << *V << "\n");
-    return -1;
-  }
+  assert(Typ != Type::VoidTy && "Can't handle voidty");
 
   unsigned Ty;
   



_______________________________________________
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to