[llvm-commits] CVS: llvm/lib/Target/X86/X86ATTAsmPrinter.cpp
Chris Lattner
lattner at cs.uiuc.edu
Thu Dec 15 16:07:42 PST 2005
Changes in directory llvm/lib/Target/X86:
X86ATTAsmPrinter.cpp updated: 1.17 -> 1.18
---
Log message:
Don't globalize internal functions
---
Diffs of the changes: (+2 -1)
X86ATTAsmPrinter.cpp | 3 ++-
1 files changed, 2 insertions(+), 1 deletion(-)
Index: llvm/lib/Target/X86/X86ATTAsmPrinter.cpp
diff -u llvm/lib/Target/X86/X86ATTAsmPrinter.cpp:1.17 llvm/lib/Target/X86/X86ATTAsmPrinter.cpp:1.18
--- llvm/lib/Target/X86/X86ATTAsmPrinter.cpp:1.17 Wed Nov 30 12:54:35 2005
+++ llvm/lib/Target/X86/X86ATTAsmPrinter.cpp Thu Dec 15 18:07:30 2005
@@ -34,7 +34,8 @@
// Print out labels for the function.
SwitchSection("\t.text\n", MF.getFunction());
EmitAlignment(4); // FIXME: This should be parameterized somewhere.
- O << "\t.globl\t" << CurrentFnName << "\n";
+ if (!MF.getFunction()->hasInternalLinkage())
+ O << "\t.globl\t" << CurrentFnName << "\n";
if (HasDotTypeDotSizeDirective)
O << "\t.type\t" << CurrentFnName << ", @function\n";
O << CurrentFnName << ":\n";
More information about the llvm-commits
mailing list