simplify and speed up some code
authorChris Lattner <sabre@nondot.org>
Sun, 6 Mar 2005 02:32:00 +0000 (02:32 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 6 Mar 2005 02:32:00 +0000 (02:32 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20472 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Bytecode/Writer/SlotTable.h
lib/Bytecode/Writer/Writer.cpp

index 60e0c1fbfd083069bebabc92e118d98f1ab6d8fd..fbb524ea985659072e1f162160e0c7490e45e1b9 100644 (file)
@@ -91,9 +91,6 @@ public:
   /// @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 5218c9e8c9b4a1399aebac678604e5e41195a270..ad2dbd0fcc18db51fc5993c4465aac8cd2d73970 100644 (file)
@@ -1071,7 +1071,7 @@ void BytecodeWriter::outputSymbolTable(const SymbolTable &MST) {
     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);