aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2009-03-11 08:08:06 +0000
committerDuncan Sands <baldrick@free.fr>2009-03-11 08:08:06 +0000
commite2881053c9d977cbe1176c2fdaf2a5049a0e7dad (patch)
tree226aa64f23be1d7ea3a0dc2e5ba6cb63df21c84f /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
parent507202ecb79bf1da7ec2b3e854b78ce660a68012 (diff)
downloadllvm-e2881053c9d977cbe1176c2fdaf2a5049a0e7dad.zip
llvm-e2881053c9d977cbe1176c2fdaf2a5049a0e7dad.tar.gz
llvm-e2881053c9d977cbe1176c2fdaf2a5049a0e7dad.tar.bz2
Remove the one-definition-rule version of extern_weak
linkage: this linkage type only applies to declarations, but ODR is only relevant to globals with definitions. llvm-svn: 66650
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
-rw-r--r--llvm/lib/Bitcode/Writer/BitcodeWriter.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
index fefffbe..940647f 100644
--- a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
+++ b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
@@ -282,12 +282,11 @@ static unsigned getEncodedLinkage(const GlobalValue *GV) {
case GlobalValue::LinkOnceAnyLinkage: return 4;
case GlobalValue::DLLImportLinkage: return 5;
case GlobalValue::DLLExportLinkage: return 6;
- case GlobalValue::ExternalWeakAnyLinkage: return 7;
+ case GlobalValue::ExternalWeakLinkage: return 7;
case GlobalValue::CommonAnyLinkage: return 8;
case GlobalValue::PrivateLinkage: return 9;
case GlobalValue::WeakODRLinkage: return 10;
case GlobalValue::LinkOnceODRLinkage: return 11;
- case GlobalValue::ExternalWeakODRLinkage: return 12;
case GlobalValue::CommonODRLinkage: return 13;
}
}