diff options
author | Duncan Sands <baldrick@free.fr> | 2009-03-11 20:14:15 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2009-03-11 20:14:15 +0000 |
commit | 4581bebf2a93a92e43d2736d8c5b193e67b5256b (patch) | |
tree | 7e9e0f9aa6a63b23c8b3ed6719c86123e0d90a8b /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | |
parent | 28a531e0036c4881a7247950091c69ca5526af44 (diff) | |
download | llvm-4581bebf2a93a92e43d2736d8c5b193e67b5256b.zip llvm-4581bebf2a93a92e43d2736d8c5b193e67b5256b.tar.gz llvm-4581bebf2a93a92e43d2736d8c5b193e67b5256b.tar.bz2 |
It makes no sense to have a ODR version of common
linkage, so remove it.
llvm-svn: 66690
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
-rw-r--r-- | llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp index 940647f..1055564 100644 --- a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp +++ b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp @@ -283,11 +283,10 @@ static unsigned getEncodedLinkage(const GlobalValue *GV) { case GlobalValue::DLLImportLinkage: return 5; case GlobalValue::DLLExportLinkage: return 6; case GlobalValue::ExternalWeakLinkage: return 7; - case GlobalValue::CommonAnyLinkage: return 8; + case GlobalValue::CommonLinkage: return 8; case GlobalValue::PrivateLinkage: return 9; case GlobalValue::WeakODRLinkage: return 10; case GlobalValue::LinkOnceODRLinkage: return 11; - case GlobalValue::CommonODRLinkage: return 13; } } |