summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bytecode
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
commit642f8c5ed457b2b2fe50fef514a753e84a0496c0 (patch)
treedc6174fdd915d4075382ac4bd7cf7ce1ac8358ec /llvm/lib/Bytecode
parent9b457e1c7367b750bea36bb7d02890f9c01ae9df (diff)
downloadbcm5719-llvm-642f8c5ed457b2b2fe50fef514a753e84a0496c0.tar.gz
bcm5719-llvm-642f8c5ed457b2b2fe50fef514a753e84a0496c0.zip
Use a per-function flag bit to indicate whether or not there is a function
body for the function. llvm-svn: 17858
Diffstat (limited to 'llvm/lib/Bytecode')
-rw-r--r--llvm/lib/Bytecode/Reader/Reader.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/llvm/lib/Bytecode/Reader/Reader.cpp b/llvm/lib/Bytecode/Reader/Reader.cpp
index 6743bc8da0b..bbf69520881 100644
--- a/llvm/lib/Bytecode/Reader/Reader.cpp
+++ b/llvm/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);
OpenPOWER on IntegriCloud