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

@ -478,10 +478,12 @@ static void WriteModuleConstants(const ValueEnumerator &VE,
}
}
/// WriteFunction - Emit a function body to the module stream.
static void WriteFunction(const Function &F, ValueEnumerator &VE,
BitstreamWriter &Stream) {
VE.incorporateFunction(F);
VE.purgeFunction();
}
/// WriteTypeSymbolTable - Emit a block for the specified type symtab.