diff options
| author | Gordon Henriksen <gordonhenriksen@mac.com> | 2007-12-23 20:58:16 +0000 |
|---|---|---|
| committer | Gordon Henriksen <gordonhenriksen@mac.com> | 2007-12-23 20:58:16 +0000 |
| commit | 84c7325ca13f6316424a2a5748b8526ceddc77e3 (patch) | |
| tree | 98e2d27d40375d2ab9bac2da8549767dbf07ccfd | |
| parent | 6d070f39b8c2c16a676deeddd666520202940f03 (diff) | |
| download | bcm5719-llvm-84c7325ca13f6316424a2a5748b8526ceddc77e3.tar.gz bcm5719-llvm-84c7325ca13f6316424a2a5748b8526ceddc77e3.zip | |
Setting GlobalDirective in TargetAsmInfo by default rather than
providing a misleading facility. It's used once in the MIPS backend
and hardcoded as "\t.globl\t" everywhere else.
llvm-svn: 45338
| -rw-r--r-- | llvm/lib/Target/Mips/MipsTargetAsmInfo.cpp | 1 | ||||
| -rw-r--r-- | llvm/lib/Target/TargetAsmInfo.cpp | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Target/Mips/MipsTargetAsmInfo.cpp b/llvm/lib/Target/Mips/MipsTargetAsmInfo.cpp index 2d3eff1c910..aa7576f3295 100644 --- a/llvm/lib/Target/Mips/MipsTargetAsmInfo.cpp +++ b/llvm/lib/Target/Mips/MipsTargetAsmInfo.cpp @@ -26,7 +26,6 @@ MipsTargetAsmInfo::MipsTargetAsmInfo(const MipsTargetMachine &TM) { 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) diff --git a/llvm/lib/Target/TargetAsmInfo.cpp b/llvm/lib/Target/TargetAsmInfo.cpp index fc91871420d..090bb078018 100644 --- a/llvm/lib/Target/TargetAsmInfo.cpp +++ b/llvm/lib/Target/TargetAsmInfo.cpp @@ -67,7 +67,7 @@ TargetAsmInfo::TargetAsmInfo() : EightByteConstantSection(0), SixteenByteConstantSection(0), ReadOnlySection(0), - GlobalDirective(0), + GlobalDirective("\t.globl\t"), SetDirective(0), LCOMMDirective(0), COMMDirective("\t.comm\t"), |

