Do not globalize internal symbols
authorChris Lattner <sabre@nondot.org>
Fri, 28 Oct 2005 18:44:07 +0000 (18:44 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 28 Oct 2005 18:44:07 +0000 (18:44 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24064 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/PowerPC/PPCAsmPrinter.cpp

index f2e2396c50585e8fa07fdf548458391be24953f5..0004424fd21751a97f450dc980188f28780af8bc 100644 (file)
@@ -390,7 +390,8 @@ bool DarwinAsmPrinter::runOnMachineFunction(MachineFunction &MF) {
   // Print out labels for the function.
   O << "\t.text\n";
   emitAlignment(4);
-  O << "\t.globl\t" << CurrentFnName << "\n";
+  if (!MF.getFunction()->hasInternalLinkage())
+    O << "\t.globl\t" << CurrentFnName << "\n";
   O << CurrentFnName << ":\n";
 
   // Print out code for the function.