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 | 3b789ad2b851e7a9076d23bc3f07efa92f6bdef4 (patch) | |
tree | fdceffeac76ff9f40c22502eeca0036a24863348 /llvm/lib/Bytecode/Writer/SlotCalculator.h | |
parent | 2c69803b616141f3d9b089d2133fdc0910ba55b0 (diff) | |
download | bcm5719-llvm-3b789ad2b851e7a9076d23bc3f07efa92f6bdef4.tar.gz bcm5719-llvm-3b789ad2b851e7a9076d23bc3f07efa92f6bdef4.zip |
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.
llvm-svn: 16062
Diffstat (limited to 'llvm/lib/Bytecode/Writer/SlotCalculator.h')
-rw-r--r-- | llvm/lib/Bytecode/Writer/SlotCalculator.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Bytecode/Writer/SlotCalculator.h b/llvm/lib/Bytecode/Writer/SlotCalculator.h index 29b69062b88..a6d4286aeb4 100644 --- a/llvm/lib/Bytecode/Writer/SlotCalculator.h +++ b/llvm/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 |