aboutsummaryrefslogtreecommitdiff
path: root/lib/Bytecode
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-03-06 02:32:00 +0000
committerChris Lattner <sabre@nondot.org>2005-03-06 02:32:00 +0000
commitaf4a9bb2baa680d1e88eeeffa7e5156aeb77a18c (patch)
tree938b9c830b7ed1e3b259089e2b84661fc261afe6 /lib/Bytecode
parentb15fde2b787eb0af4613f6f0396f4582a0870ba6 (diff)
simplify and speed up some code
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20472 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bytecode')
-rw-r--r--lib/Bytecode/Writer/SlotTable.h3
-rw-r--r--lib/Bytecode/Writer/Writer.cpp2
2 files changed, 1 insertions, 4 deletions
diff --git a/lib/Bytecode/Writer/SlotTable.h b/lib/Bytecode/Writer/SlotTable.h
index 60e0c1fbfd..fbb524ea98 100644
--- a/lib/Bytecode/Writer/SlotTable.h
+++ b/lib/Bytecode/Writer/SlotTable.h
@@ -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;
diff --git a/lib/Bytecode/Writer/Writer.cpp b/lib/Bytecode/Writer/Writer.cpp
index 5218c9e8c9..ad2dbd0fcc 100644
--- a/lib/Bytecode/Writer/Writer.cpp
+++ b/lib/Bytecode/Writer/Writer.cpp
@@ -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);