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 | 315690ec2a99e1c0867853955f81d99f548178be (patch) | |
| tree | d53db5d84425b2696f3617c9a8dde3cd0c0b4f6f /lib/Target/TargetAsmInfo.cpp | |
| parent | d7ca416d6c9ae1966e0df8193112e3c5f430a053 (diff) | |
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/TargetAsmInfo.cpp')
| -rw-r--r-- | lib/Target/TargetAsmInfo.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/Target/TargetAsmInfo.cpp b/lib/Target/TargetAsmInfo.cpp index df540393d5..e963d7116a 100644 --- a/lib/Target/TargetAsmInfo.cpp +++ b/lib/Target/TargetAsmInfo.cpp @@ -27,8 +27,7 @@ using namespace llvm; TargetAsmInfo::TargetAsmInfo() : TextSection(0), - DataSection("\t.data"), - DataSection_(0), + DataSection(0), BSSSection("\t.bss"), BSSSection_(0), ReadOnlySection(0), @@ -126,7 +125,7 @@ TargetAsmInfo::TargetAsmInfo() : DwarfExceptionSection(".gcc_except_table"), AsmTransCBE(0) { TextSection = getUnnamedSection("\t.text", SectionFlags::Code); - DataSection_ = getUnnamedSection(DataSection); + DataSection = getUnnamedSection("\t.data", SectionFlags::Writeable); } TargetAsmInfo::~TargetAsmInfo() { @@ -306,14 +305,14 @@ TargetAsmInfo::SelectSectionForGlobal(const GlobalValue *GV) const { return getReadOnlySection_(); } - return getDataSection_(); + return getDataSection(); } // Lame default implementation. Calculate the section name for machine const. const Section* TargetAsmInfo::SelectSectionForMachineConst(const Type *Ty) const { // FIXME: Support data.rel stuff someday - return getDataSection_(); + return getDataSection(); } std::string |
