summaryrefslogtreecommitdiffstats
path: root/llvm/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
commit8a982e10be136c4227e0edfcf52588e6d7ec575a (patch)
tree3f7f6d76c122b00af92301ebcb5d884c2d7b2394 /llvm/lib/Bytecode
parentc9b09846666d6fdaf180ba564926c0bbc547eb10 (diff)
downloadbcm5719-llvm-8a982e10be136c4227e0edfcf52588e6d7ec575a.tar.gz
bcm5719-llvm-8a982e10be136c4227e0edfcf52588e6d7ec575a.zip
simplify and speed up some code
llvm-svn: 20472
Diffstat (limited to 'llvm/lib/Bytecode')
-rw-r--r--llvm/lib/Bytecode/Writer/SlotTable.h3
-rw-r--r--llvm/lib/Bytecode/Writer/Writer.cpp2
2 files changed, 1 insertions, 4 deletions
diff --git a/llvm/lib/Bytecode/Writer/SlotTable.h b/llvm/lib/Bytecode/Writer/SlotTable.h
index 60e0c1fbfd0..fbb524ea985 100644
--- a/llvm/lib/Bytecode/Writer/SlotTable.h
+++ b/llvm/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/llvm/lib/Bytecode/Writer/Writer.cpp b/llvm/lib/Bytecode/Writer/Writer.cpp
index 5218c9e8c9b..ad2dbd0fcc1 100644
--- a/llvm/lib/Bytecode/Writer/Writer.cpp
+++ b/llvm/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);
OpenPOWER on IntegriCloud