diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2004-08-26 22:32:00 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2004-08-26 22:32:00 +0000 |
commit | 07ea1917d00cb84474fc47a1050572d9c589501c (patch) | |
tree | 7bc3d4448b0f3f194e2c0479a9b916e77f9caa36 /lib/Bytecode/Writer/SlotCalculator.h | |
parent | 22a2f6d5b05631a21b62e3e103aa1b9469ad0c5c (diff) |
Add the CompactionTableIsEmpty function so that we can determine if a
CompactionTable really needs to be emitted. This is not a straight forward
computation, hence the need for a member function here.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16062 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bytecode/Writer/SlotCalculator.h')
-rw-r--r-- | lib/Bytecode/Writer/SlotCalculator.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Bytecode/Writer/SlotCalculator.h b/lib/Bytecode/Writer/SlotCalculator.h index 29b69062b8..a6d4286aeb 100644 --- a/lib/Bytecode/Writer/SlotCalculator.h +++ b/lib/Bytecode/Writer/SlotCalculator.h @@ -138,6 +138,9 @@ public: const TypeList& getCompactionTypes() const { return CompactionTypes; } + /// @brief Determine if the compaction table (not types) is empty + bool CompactionTableIsEmpty() const; + private: // getOrCreateSlot - Values can be crammed into here at will... if // they haven't been inserted already, they get inserted, otherwise |