mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
simplify and speed up some code
llvm-svn: 20472
This commit is contained in:
parent
a518cf568a
commit
1343991e93
@ -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;
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user