[llvm-commits] CVS: llvm/lib/Bytecode/Writer/SlotTable.h Writer.cpp
Chris Lattner
lattner at cs.uiuc.edu
Sat Mar 5 18:32:23 PST 2005
Changes in directory llvm/lib/Bytecode/Writer:
SlotTable.h updated: 1.3 -> 1.4
Writer.cpp updated: 1.93 -> 1.94
---
Log message:
simplify and speed up some code
---
Diffs of the changes: (+1 -4)
SlotTable.h | 3 ---
Writer.cpp | 2 +-
2 files changed, 1 insertion(+), 4 deletions(-)
Index: llvm/lib/Bytecode/Writer/SlotTable.h
diff -u llvm/lib/Bytecode/Writer/SlotTable.h:1.3 llvm/lib/Bytecode/Writer/SlotTable.h:1.4
--- llvm/lib/Bytecode/Writer/SlotTable.h:1.3 Thu Jun 17 13:17:59 2004
+++ llvm/lib/Bytecode/Writer/SlotTable.h Sat Mar 5 20:32:00 2005
@@ -91,9 +91,6 @@
/// @brief Get the number of planes of values.
size_t value_size() const { return vTable.size(); }
- /// @brief Get the number of types.
- size_t type_size() const { return tPlane.size(); }
-
/// @brief Determine if a specific type plane in the value table exists
bool plane_exists(PlaneNum plane) const {
return vTable.size() > plane;
Index: llvm/lib/Bytecode/Writer/Writer.cpp
diff -u llvm/lib/Bytecode/Writer/Writer.cpp:1.93 llvm/lib/Bytecode/Writer/Writer.cpp:1.94
--- llvm/lib/Bytecode/Writer/Writer.cpp:1.93 Sun Feb 27 00:16:15 2005
+++ llvm/lib/Bytecode/Writer/Writer.cpp Sat Mar 5 20:32:00 2005
@@ -1071,7 +1071,7 @@
if (I == End) continue; // Don't mess with an absent type...
// Write the number of values in this plane
- output_vbr(MST.type_size(PI->first));
+ output_vbr(PI->second.size());
// Write the slot number of the type for this plane
Slot = Table.getSlot(PI->first);
More information about the llvm-commits
mailing list