[llvm-commits] CVS: llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
Chris Lattner
sabre at nondot.org
Fri May 11 16:52:17 PDT 2007
Changes in directory llvm/lib/Bitcode/Writer:
BitcodeWriter.cpp updated: 1.52 -> 1.53
---
Log message:
allow partially materialized modules to be written out, which just strips out
the functions which haven't been read.
---
Diffs of the changes: (+1 -0)
BitcodeWriter.cpp | 1 +
1 files changed, 1 insertion(+)
Index: llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
diff -u llvm/lib/Bitcode/Writer/BitcodeWriter.cpp:1.52 llvm/lib/Bitcode/Writer/BitcodeWriter.cpp:1.53
--- llvm/lib/Bitcode/Writer/BitcodeWriter.cpp:1.52 Tue May 8 00:38:01 2007
+++ llvm/lib/Bitcode/Writer/BitcodeWriter.cpp Fri May 11 18:51:59 2007
@@ -256,6 +256,7 @@
static unsigned getEncodedLinkage(const GlobalValue *GV) {
switch (GV->getLinkage()) {
default: assert(0 && "Invalid linkage!");
+ case GlobalValue::GhostLinkage: // Map ghost linkage onto external.
case GlobalValue::ExternalLinkage: return 0;
case GlobalValue::WeakLinkage: return 1;
case GlobalValue::AppendingLinkage: return 2;
More information about the llvm-commits
mailing list