diff options
| author | Chris Lattner <sabre@nondot.org> | 2007-04-26 03:50:57 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2007-04-26 03:50:57 +0000 |
| commit | 5f640b9cc9ae40e7680bf06e01f2916a3d93251d (patch) | |
| tree | dea6aab1156e5d677f2a7d5224a1b71da7f03a1f /llvm/lib/Bitcode/Writer/ValueEnumerator.h | |
| parent | a5211c43c273c38102cbbb4933a50dd466398f9c (diff) | |
| download | bcm5719-llvm-5f640b9cc9ae40e7680bf06e01f2916a3d93251d.tar.gz bcm5719-llvm-5f640b9cc9ae40e7680bf06e01f2916a3d93251d.zip | |
add support for incorporating and purging functions to the value enumerator
llvm-svn: 36465
Diffstat (limited to 'llvm/lib/Bitcode/Writer/ValueEnumerator.h')
| -rw-r--r-- | llvm/lib/Bitcode/Writer/ValueEnumerator.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/lib/Bitcode/Writer/ValueEnumerator.h b/llvm/lib/Bitcode/Writer/ValueEnumerator.h index 83c2fb9d40d..c0db9d968e0 100644 --- a/llvm/lib/Bitcode/Writer/ValueEnumerator.h +++ b/llvm/lib/Bitcode/Writer/ValueEnumerator.h @@ -43,6 +43,9 @@ private: ValueMapType ValueMap; ValueList Values; + /// When a function is incorporated, this is the size of the Values list + /// before incorporation. + unsigned ModuleLevel; ValueEnumerator(const ValueEnumerator &); // DO NOT IMPLEMENT void operator=(const ValueEnumerator &); // DO NOT IMPLEMENT @@ -72,7 +75,7 @@ public: /// incorporateFunction/purgeFunction - If you'd like to deal with a function, /// use these two methods to get its data into the ValueEnumerator! /// - void incorporateFunction(const Function *F); + void incorporateFunction(const Function &F); void purgeFunction(); private: |

