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 | e383f2a7e1737dd05434bb8aba0ff39f23099821 (patch) | |
tree | 8ff76b818a2552b57a509dbd7daaa6225608e7d5 | |
parent | 801194ff855960e7ebeb8f37b7e495cc0931f8b3 (diff) | |
download | external_llvm-e383f2a7e1737dd05434bb8aba0ff39f23099821.zip external_llvm-e383f2a7e1737dd05434bb8aba0ff39f23099821.tar.gz external_llvm-e383f2a7e1737dd05434bb8aba0ff39f23099821.tar.bz2 |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45338 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Target/Mips/MipsTargetAsmInfo.cpp | 1 | ||||
-rw-r--r-- | lib/Target/TargetAsmInfo.cpp | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/lib/Target/Mips/MipsTargetAsmInfo.cpp b/lib/Target/Mips/MipsTargetAsmInfo.cpp index 2d3eff1..aa7576f 100644 --- a/lib/Target/Mips/MipsTargetAsmInfo.cpp +++ b/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/lib/Target/TargetAsmInfo.cpp b/lib/Target/TargetAsmInfo.cpp index fc91871..090bb07 100644 --- a/lib/Target/TargetAsmInfo.cpp +++ b/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"), |