Setting GlobalDirective in TargetAsmInfo by default rather than
authorGordon Henriksen <gordonhenriksen@mac.com>
Sun, 23 Dec 2007 20:58:16 +0000 (20:58 +0000)
committerGordon Henriksen <gordonhenriksen@mac.com>
Sun, 23 Dec 2007 20:58:16 +0000 (20:58 +0000)
providing a misleading facility. It's used once in the MIPS backend
and hardcoded as "\t.globl\t" everywhere else.

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

lib/Target/Mips/MipsTargetAsmInfo.cpp
lib/Target/TargetAsmInfo.cpp

index 2d3eff1c910840706d7ed2f3a6636b1da4807993..aa7576f3295de6f454189d3e1c2d0c54289f0fd8 100644 (file)
@@ -26,7 +26,6 @@ MipsTargetAsmInfo::MipsTargetAsmInfo(const MipsTargetMachine &TM) {
   ReadOnlySection      = "\t.rdata";
   ZeroDirective        = "\t.space\t";
   BSSSection           = "\t.section\t.bss";
   ReadOnlySection      = "\t.rdata";
   ZeroDirective        = "\t.space\t";
   BSSSection           = "\t.section\t.bss";
-  GlobalDirective      = "\t.globl\t";
   LCOMMDirective       = "\t.lcomm\t";
 
   if (TM.getRelocationModel() == Reloc::Static)
   LCOMMDirective       = "\t.lcomm\t";
 
   if (TM.getRelocationModel() == Reloc::Static)
index fc91871420d36ac1cae150ead540b8bd2e29a2d2..090bb078018edd28a4b6a5dd436aa913e0eb40a1 100644 (file)
@@ -67,7 +67,7 @@ TargetAsmInfo::TargetAsmInfo() :
   EightByteConstantSection(0),
   SixteenByteConstantSection(0),
   ReadOnlySection(0),
   EightByteConstantSection(0),
   SixteenByteConstantSection(0),
   ReadOnlySection(0),
-  GlobalDirective(0),
+  GlobalDirective("\t.globl\t"),
   SetDirective(0),
   LCOMMDirective(0),
   COMMDirective("\t.comm\t"),
   SetDirective(0),
   LCOMMDirective(0),
   COMMDirective("\t.comm\t"),