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 | 4dc2b39bf89d7c87868008ef8a0f807e0419aca6 (patch) | |
tree | 17c5ecc6a7655096a2bff3312b8ca24cca3ebf76 /lib/CodeGen/MachOWriter.cpp | |
parent | 94244f384954f968617040a55e0857bf8c78bb19 (diff) | |
download | external_llvm-4dc2b39bf89d7c87868008ef8a0f807e0419aca6.zip external_llvm-4dc2b39bf89d7c87868008ef8a0f807e0419aca6.tar.gz external_llvm-4dc2b39bf89d7c87868008ef8a0f807e0419aca6.tar.bz2 |
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/CodeGen/MachOWriter.cpp')
-rw-r--r-- | lib/CodeGen/MachOWriter.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/CodeGen/MachOWriter.cpp b/lib/CodeGen/MachOWriter.cpp index 5fe05a4..d2e8791 100644 --- a/lib/CodeGen/MachOWriter.cpp +++ b/lib/CodeGen/MachOWriter.cpp @@ -960,8 +960,7 @@ MachOSym::MachOSym(const GlobalValue *gv, std::string name, uint8_t sect, case GlobalValue::WeakODRLinkage: case GlobalValue::LinkOnceAnyLinkage: case GlobalValue::LinkOnceODRLinkage: - case GlobalValue::CommonAnyLinkage: - case GlobalValue::CommonODRLinkage: + case GlobalValue::CommonLinkage: assert(!isa<Function>(gv) && "Unexpected linkage type for Function!"); case GlobalValue::ExternalLinkage: GVName = TAI->getGlobalPrefix() + name; |