summaryrefslogtreecommitdiff
path: root/lib/Bitcode/Writer
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2009-03-11 20:14:15 +0000
committerDuncan Sands <baldrick@free.fr>2009-03-11 20:14:15 +0000
commit4dc2b39bf89d7c87868008ef8a0f807e0419aca6 (patch)
tree17c5ecc6a7655096a2bff3312b8ca24cca3ebf76 /lib/Bitcode/Writer
parent94244f384954f968617040a55e0857bf8c78bb19 (diff)
downloadllvm-4dc2b39bf89d7c87868008ef8a0f807e0419aca6.tar.gz
llvm-4dc2b39bf89d7c87868008ef8a0f807e0419aca6.tar.bz2
llvm-4dc2b39bf89d7c87868008ef8a0f807e0419aca6.tar.xz
It makes no sense to have a ODR version of common
linkage, so remove it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@66690 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bitcode/Writer')
-rw-r--r--lib/Bitcode/Writer/BitcodeWriter.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Bitcode/Writer/BitcodeWriter.cpp b/lib/Bitcode/Writer/BitcodeWriter.cpp
index 940647fb54..1055564be2 100644
--- a/lib/Bitcode/Writer/BitcodeWriter.cpp
+++ b/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;
}
}