From 4581bebf2a93a92e43d2736d8c5b193e67b5256b Mon Sep 17 00:00:00 2001 From: Duncan Sands Date: Wed, 11 Mar 2009 20:14:15 +0000 Subject: It makes no sense to have a ODR version of common linkage, so remove it. llvm-svn: 66690 --- llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp') 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; } } -- cgit v1.1