Make the "linker_private" linkage type emit a non-weak symbol to the file. It
authorBill Wendling <isanbard@gmail.com>
Thu, 1 Jul 2010 22:38:24 +0000 (22:38 +0000)
committerBill Wendling <isanbard@gmail.com>
Thu, 1 Jul 2010 22:38:24 +0000 (22:38 +0000)
will still be stripped by the linker when it generates the final image.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107440 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/AsmPrinter/AsmPrinter.cpp

index fa3356dd0f2086f1a2c38cf5c471e60f48459ab2..d9387a8e72c509655878442630f16de2faa7ceb7 100644 (file)
@@ -199,7 +199,6 @@ void AsmPrinter::EmitLinkage(unsigned Linkage, MCSymbol *GVSym) const {
   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 @@ void AsmPrinter::EmitLinkage(unsigned Linkage, MCSymbol *GVSym) const {
     break;
   case GlobalValue::PrivateLinkage:
   case GlobalValue::InternalLinkage:
+  case GlobalValue::LinkerPrivateLinkage:
     break;
   default:
     llvm_unreachable("Unknown linkage type!");