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
This commit is contained in:
Chris Lattner
2007-04-26 03:50:57 +00:00
parent 51d5f29c3f
commit 8d35c79f27
3 changed files with 38 additions and 98 deletions

View File

@@ -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: