diff options
| author | Chris Lattner <sabre@nondot.org> | 2009-07-26 19:23:28 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2009-07-26 19:23:28 +0000 |
| commit | 602d44fa70ada99f009b5c988f706def08f17821 (patch) | |
| tree | e191ef3a45a73f9c9cd950c8083803ad3160b6e7 /llvm/lib/Target/ELFTargetAsmInfo.cpp | |
| parent | 8953720f2307a22c444090109086641777adbd79 (diff) | |
| download | bcm5719-llvm-602d44fa70ada99f009b5c988f706def08f17821.tar.gz bcm5719-llvm-602d44fa70ada99f009b5c988f706def08f17821.zip | |
untangle a TargetAsmInfo hack where ELFTargetAsmInfo would create a
'unnamed' bss section, but some impls would want a named one. Since
they don't have consistent behavior, just make each target do their
own thing, instead of doing something "sortof common" then having
targets change immutable objects later.
llvm-svn: 77165
Diffstat (limited to 'llvm/lib/Target/ELFTargetAsmInfo.cpp')
| -rw-r--r-- | llvm/lib/Target/ELFTargetAsmInfo.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/Target/ELFTargetAsmInfo.cpp b/llvm/lib/Target/ELFTargetAsmInfo.cpp index b64c0b675d9..927cb38b1de 100644 --- a/llvm/lib/Target/ELFTargetAsmInfo.cpp +++ b/llvm/lib/Target/ELFTargetAsmInfo.cpp @@ -22,14 +22,13 @@ #include "llvm/Target/ELFTargetAsmInfo.h" #include "llvm/Target/TargetMachine.h" #include "llvm/Target/TargetData.h" - using namespace llvm; ELFTargetAsmInfo::ELFTargetAsmInfo(const TargetMachine &TM) : TargetAsmInfo(TM) { - BSSSection_ = getUnnamedSection("\t.bss", - SectionFlags::Writable | SectionFlags::BSS); + BSSSection_ = getUnnamedSection("\t.bss", + SectionFlags::Writable | SectionFlags::BSS); ReadOnlySection = getNamedSection("\t.rodata", SectionFlags::None); TLSDataSection = getNamedSection("\t.tdata", SectionFlags::Writable | SectionFlags::TLS); |

