[llvm-commits] CVS: llvm/lib/Bytecode/Reader/Reader.cpp
Chris Lattner
lattner at cs.uiuc.edu
Mon Nov 15 14:39:06 PST 2004
Changes in directory llvm/lib/Bytecode/Reader:
Reader.cpp updated: 1.141 -> 1.142
---
Log message:
Use a per-function flag bit to indicate whether or not there is a function
body for the function.
---
Diffs of the changes: (+6 -3)
Index: llvm/lib/Bytecode/Reader/Reader.cpp
diff -u llvm/lib/Bytecode/Reader/Reader.cpp:1.141 llvm/lib/Bytecode/Reader/Reader.cpp:1.142
--- llvm/lib/Bytecode/Reader/Reader.cpp:1.141 Mon Nov 15 15:55:33 2004
+++ llvm/lib/Bytecode/Reader/Reader.cpp Mon Nov 15 16:38:52 2004
@@ -1886,10 +1886,13 @@
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);
More information about the llvm-commits
mailing list