diff options
author | Anton Korobeynikov <asl@math.spbu.ru> | 2008-09-24 22:16:16 +0000 |
---|---|---|
committer | Anton Korobeynikov <asl@math.spbu.ru> | 2008-09-24 22:16:16 +0000 |
commit | cca60fa0d98abdf7dbe69a4ef15c539d80f6e9bf (patch) | |
tree | d53db5d84425b2696f3617c9a8dde3cd0c0b4f6f /lib/Target/ELFTargetAsmInfo.cpp | |
parent | 55b94965b25917c590987db1b92b730b64f17c0c (diff) | |
download | external_llvm-cca60fa0d98abdf7dbe69a4ef15c539d80f6e9bf.zip external_llvm-cca60fa0d98abdf7dbe69a4ef15c539d80f6e9bf.tar.gz external_llvm-cca60fa0d98abdf7dbe69a4ef15c539d80f6e9bf.tar.bz2 |
Get rid of duplicate char*/Section* DataSection
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56575 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ELFTargetAsmInfo.cpp')
-rw-r--r-- | lib/Target/ELFTargetAsmInfo.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Target/ELFTargetAsmInfo.cpp b/lib/Target/ELFTargetAsmInfo.cpp index 4529d01..df4e43d 100644 --- a/lib/Target/ELFTargetAsmInfo.cpp +++ b/lib/Target/ELFTargetAsmInfo.cpp @@ -27,7 +27,6 @@ using namespace llvm; ELFTargetAsmInfo::ELFTargetAsmInfo(const TargetMachine &TM) { ETM = &TM; - DataSection_ = getUnnamedSection("\t.data", SectionFlags::Writeable); BSSSection_ = getUnnamedSection("\t.bss", SectionFlags::Writeable | SectionFlags::BSS); ReadOnlySection_ = getNamedSection("\t.rodata", SectionFlags::None); @@ -64,7 +63,7 @@ ELFTargetAsmInfo::SelectSectionForGlobal(const GlobalValue *GV) const { switch (Kind) { case SectionKind::Data: case SectionKind::SmallData: - return getDataSection_(); + return getDataSection(); case SectionKind::BSS: case SectionKind::SmallBSS: // ELF targets usually have BSS sections |