diff options
author | Chris Lattner <sabre@nondot.org> | 2007-04-26 03:27:58 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-04-26 03:27:58 +0000 |
commit | 198f34ac359c48018c6e1f784cf3770ead63b253 (patch) | |
tree | 1c1ad5f52cfed048089a3aec007ec27de6dac99f /lib/Bitcode/Writer/ValueEnumerator.h | |
parent | eb0107af86b9dde84cc1f57876f0cefc6707a919 (diff) |
move some code around, fix a bug in the reader reading globalinits (which
I just introduced), stub out function reading, purge aggregate values from
the value table before reading functions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36463 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bitcode/Writer/ValueEnumerator.h')
-rw-r--r-- | lib/Bitcode/Writer/ValueEnumerator.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Bitcode/Writer/ValueEnumerator.h b/lib/Bitcode/Writer/ValueEnumerator.h index 31e6940d9f..83c2fb9d40 100644 --- a/lib/Bitcode/Writer/ValueEnumerator.h +++ b/lib/Bitcode/Writer/ValueEnumerator.h @@ -64,6 +64,11 @@ public: const ValueList &getValues() const { return Values; } const TypeList &getTypes() const { return Types; } + /// PurgeAggregateValues - If there are any aggregate values at the end of the + /// value list, remove them and return the count of the remaining values. If + /// there are none, return -1. + int PurgeAggregateValues(); + /// incorporateFunction/purgeFunction - If you'd like to deal with a function, /// use these two methods to get its data into the ValueEnumerator! /// |