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/Target/PowerPC/AsmPrinter/PPCAsmPrinter.cpp | |
| parent | 28a531e0036c4881a7247950091c69ca5526af44 (diff) | |
| download | bcm5719-llvm-4581bebf2a93a92e43d2736d8c5b193e67b5256b.tar.gz bcm5719-llvm-4581bebf2a93a92e43d2736d8c5b193e67b5256b.zip | |
It makes no sense to have a ODR version of common
linkage, so remove it.
llvm-svn: 66690
Diffstat (limited to 'llvm/lib/Target/PowerPC/AsmPrinter/PPCAsmPrinter.cpp')
| -rw-r--r-- | llvm/lib/Target/PowerPC/AsmPrinter/PPCAsmPrinter.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/lib/Target/PowerPC/AsmPrinter/PPCAsmPrinter.cpp b/llvm/lib/Target/PowerPC/AsmPrinter/PPCAsmPrinter.cpp index 4da53774d72..3de290f1a8d 100644 --- a/llvm/lib/Target/PowerPC/AsmPrinter/PPCAsmPrinter.cpp +++ b/llvm/lib/Target/PowerPC/AsmPrinter/PPCAsmPrinter.cpp @@ -715,8 +715,7 @@ void PPCLinuxAsmPrinter::printModuleLevelGV(const GlobalVariable* GVar) { case GlobalValue::LinkOnceODRLinkage: case GlobalValue::WeakAnyLinkage: case GlobalValue::WeakODRLinkage: - case GlobalValue::CommonAnyLinkage: - case GlobalValue::CommonODRLinkage: + case GlobalValue::CommonLinkage: O << "\t.global " << name << '\n' << "\t.type " << name << ", @object\n" << "\t.weak " << name << '\n'; @@ -961,8 +960,7 @@ void PPCDarwinAsmPrinter::printModuleLevelGV(const GlobalVariable* GVar) { case GlobalValue::LinkOnceODRLinkage: case GlobalValue::WeakAnyLinkage: case GlobalValue::WeakODRLinkage: - case GlobalValue::CommonAnyLinkage: - case GlobalValue::CommonODRLinkage: + case GlobalValue::CommonLinkage: O << "\t.globl " << name << '\n' << "\t.weak_definition " << name << '\n'; break; |

