aboutsummaryrefslogtreecommitdiff
path: root/lib/Bytecode/Reader/Reader.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-11-15 22:38:52 +0000
committerChris Lattner <sabre@nondot.org>2004-11-15 22:38:52 +0000
commit97fbc500a727d22d35e6c7c9bc1cb6059d728470 (patch)
tree0c85562e7e3839d3c9e9549dc8c7ffcb11ee8036 /lib/Bytecode/Reader/Reader.cpp
parentfd7f8fea650dca227584322eb6bf8404f511ae19 (diff)
Use a per-function flag bit to indicate whether or not there is a function
body for the function. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17858 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bytecode/Reader/Reader.cpp')
-rw-r--r--lib/Bytecode/Reader/Reader.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/Bytecode/Reader/Reader.cpp b/lib/Bytecode/Reader/Reader.cpp
index 6743bc8da0..bbf6952088 100644
--- a/lib/Bytecode/Reader/Reader.cpp
+++ b/lib/Bytecode/Reader/Reader.cpp
@@ -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);