[llvm-commits] CVS: llvm/lib/Bytecode/Reader/Reader.cpp
Misha Brukman
brukman at cs.uiuc.edu
Sun Nov 14 13:03:06 PST 2004
Changes in directory llvm/lib/Bytecode/Reader:
Reader.cpp updated: 1.137 -> 1.138
---
Log message:
Mark an unmaterialized function as having GhostLinkage
---
Diffs of the changes: (+4 -0)
Index: llvm/lib/Bytecode/Reader/Reader.cpp
diff -u llvm/lib/Bytecode/Reader/Reader.cpp:1.137 llvm/lib/Bytecode/Reader/Reader.cpp:1.138
--- llvm/lib/Bytecode/Reader/Reader.cpp:1.137 Sun Nov 7 12:20:55 2004
+++ llvm/lib/Bytecode/Reader/Reader.cpp Sun Nov 14 15:02:55 2004
@@ -1735,6 +1735,10 @@
// Save the information for future reading of the function
LazyFunctionLoadMap[Func] = LazyFunctionInfo(BlockStart, BlockEnd);
+ // This function has a body but it's not loaded so it appears `External'.
+ // Mark it as a `Ghost' instead to notify the users that it has a body.
+ Func->setLinkage(GlobalValue::GhostLinkage);
+
// Pretend we've `parsed' this function
At = BlockEnd;
}
More information about the llvm-commits
mailing list