1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 19:12:56 +02:00

Use a per-function flag bit to indicate whether or not there is a function

body for the function.

llvm-svn: 17858
This commit is contained in:
Chris Lattner 2004-11-15 22:38:52 +00:00
parent c199d448e9
commit 558ce75905

View File

@ -1886,10 +1886,13 @@ void BytecodeReader::ParseModuleGlobalInfo() {
insertValue(Func, FnSignature >> 5, ModuleValues);
// Flags are not used yet.
//unsigned Flags = FnSignature & 31;
unsigned Flags = FnSignature & 31;
// Save this for later so we know type of lazily instantiated functions
FunctionSignatureList.push_back(Func);
// Save this for later so we know type of lazily instantiated functions.
// Note that known-external functions do not have FunctionInfo blocks, so we
// do not add them to the FunctionSignatureList.
if ((Flags & (1 << 4)) == 0)
FunctionSignatureList.push_back(Func);
if (Handler) Handler->handleFunctionDeclaration(Func);