diff options
author | Anton Korobeynikov <asl@math.spbu.ru> | 2008-09-24 22:20:27 +0000 |
---|---|---|
committer | Anton Korobeynikov <asl@math.spbu.ru> | 2008-09-24 22:20:27 +0000 |
commit | 8e7b93938de9bf4e6d2bcb6cb2aa6f7533aa2600 (patch) | |
tree | 2fb4e1d425240590c386744bad3ab741a53ef1ae /llvm/lib/Target/TargetAsmInfo.cpp | |
parent | 91a6705839f1da638f7b0834434e83b4b1a4b570 (diff) | |
download | bcm5719-llvm-8e7b93938de9bf4e6d2bcb6cb2aa6f7533aa2600.tar.gz bcm5719-llvm-8e7b93938de9bf4e6d2bcb6cb2aa6f7533aa2600.zip |
Get rid of ReadOnlySection duplicate
llvm-svn: 56582
Diffstat (limited to 'llvm/lib/Target/TargetAsmInfo.cpp')
-rw-r--r-- | llvm/lib/Target/TargetAsmInfo.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/Target/TargetAsmInfo.cpp b/llvm/lib/Target/TargetAsmInfo.cpp index ab4db2af3ee..1c883ada90c 100644 --- a/llvm/lib/Target/TargetAsmInfo.cpp +++ b/llvm/lib/Target/TargetAsmInfo.cpp @@ -31,7 +31,6 @@ TargetAsmInfo::TargetAsmInfo() : BSSSection("\t.bss"), BSSSection_(0), ReadOnlySection(0), - ReadOnlySection_(0), SmallDataSection(0), SmallBSSSection(0), SmallRODataSection(0), @@ -293,8 +292,8 @@ TargetAsmInfo::SelectSectionForGlobal(const GlobalValue *GV) const { return getTextSection(); else if (isBSS(Kind) && getBSSSection_()) return getBSSSection_(); - else if (getReadOnlySection_() && SectionKind::isReadOnly(Kind)) - return getReadOnlySection_(); + else if (getReadOnlySection() && SectionKind::isReadOnly(Kind)) + return getReadOnlySection(); } return getDataSection(); |