mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2026-07-18 13:15:38 -04:00
allow partially materialized modules to be written out, which just strips out
the functions which haven't been read. llvm-svn: 36999
This commit is contained in:
@@ -256,6 +256,7 @@ static void WriteTypeTable(const ValueEnumerator &VE, BitstreamWriter &Stream) {
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user