[llvm-commits] [llvm] r107440 - /llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
Bill Wendling
isanbard at gmail.com
Thu Jul 1 15:38:24 PDT 2010
Author: void
Date: Thu Jul 1 17:38:24 2010
New Revision: 107440
URL: http://llvm.org/viewvc/llvm-project?rev=107440&view=rev
Log:
Make the "linker_private" linkage type emit a non-weak symbol to the file. It
will still be stripped by the linker when it generates the final image.
Modified:
llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
Modified: llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp?rev=107440&r1=107439&r2=107440&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp Thu Jul 1 17:38:24 2010
@@ -199,7 +199,6 @@
case GlobalValue::LinkOnceODRLinkage:
case GlobalValue::WeakAnyLinkage:
case GlobalValue::WeakODRLinkage:
- case GlobalValue::LinkerPrivateLinkage:
case GlobalValue::LinkerPrivateWeakLinkage:
if (MAI->getWeakDefDirective() != 0) {
// .globl _foo
@@ -226,6 +225,7 @@
break;
case GlobalValue::PrivateLinkage:
case GlobalValue::InternalLinkage:
+ case GlobalValue::LinkerPrivateLinkage:
break;
default:
llvm_unreachable("Unknown linkage type!");
More information about the llvm-commits
mailing list