summaryrefslogtreecommitdiff
path: root/lib/Bitcode/Writer/ValueEnumerator.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-04-26 03:50:57 +0000
committerChris Lattner <sabre@nondot.org>2007-04-26 03:50:57 +0000
commit8d35c79f273b74df1e95b4472620e31e81342037 (patch)
treef6d53d7d0723423106648ea789bb8a2fa0c89f6c /lib/Bitcode/Writer/ValueEnumerator.h
parent51d5f29c3f4e30edd3a95a520a6c0720603948d5 (diff)
downloadllvm-8d35c79f273b74df1e95b4472620e31e81342037.tar.gz
llvm-8d35c79f273b74df1e95b4472620e31e81342037.tar.bz2
llvm-8d35c79f273b74df1e95b4472620e31e81342037.tar.xz
add support for incorporating and purging functions to the value enumerator
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36465 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bitcode/Writer/ValueEnumerator.h')
-rw-r--r--lib/Bitcode/Writer/ValueEnumerator.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/Bitcode/Writer/ValueEnumerator.h b/lib/Bitcode/Writer/ValueEnumerator.h
index 83c2fb9d40..c0db9d968e 100644
--- a/lib/Bitcode/Writer/ValueEnumerator.h
+++ b/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: