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/DarwinTargetAsmInfo.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/DarwinTargetAsmInfo.cpp')
-rw-r--r-- | llvm/lib/Target/DarwinTargetAsmInfo.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/llvm/lib/Target/DarwinTargetAsmInfo.cpp b/llvm/lib/Target/DarwinTargetAsmInfo.cpp index 55d0c429c75..7de89003656 100644 --- a/llvm/lib/Target/DarwinTargetAsmInfo.cpp +++ b/llvm/lib/Target/DarwinTargetAsmInfo.cpp @@ -38,12 +38,12 @@ DarwinTargetAsmInfo::DarwinTargetAsmInfo(const TargetMachine &TM) { // there, if needed. SixteenByteConstantSection = 0; - ReadOnlySection_ = getUnnamedSection("\t.const\n", SectionFlags::None); + ReadOnlySection = getUnnamedSection("\t.const\n", SectionFlags::None); TextCoalSection = getNamedSection("\t__TEXT,__textcoal_nt,coalesced,pure_instructions", SectionFlags::Code); - ConstDataCoalSection = getBamedSection("\t__DATA,__const_coal,coalesced", + ConstDataCoalSection = getNamedSection("\t__DATA,__const_coal,coalesced", SectionFlags::None); ConstDataSection = getUnnamedSection(".const_data", SectionFlags::None); DataCoalSection = getNamedSection("\t__DATA,__datacoal_nt,coalesced", @@ -92,7 +92,7 @@ DarwinTargetAsmInfo::SelectSectionForGlobal(const GlobalValue *GV) const { return (isWeak ? DataCoalSection : DataSection); case SectionKind::ROData: return (isWeak ? ConstDataCoalSection : - (isNonStatic ? ConstDataSection : getReadOnlySection_())); + (isNonStatic ? ConstDataSection : getReadOnlySection())); case SectionKind::RODataMergeStr: return (isWeak ? ConstDataCoalSection : @@ -122,7 +122,7 @@ DarwinTargetAsmInfo::MergeableStringSection(const GlobalVariable *GV) const { return getCStringSection_(); } - return getReadOnlySection_(); + return getReadOnlySection(); } const Section* @@ -144,7 +144,7 @@ DarwinTargetAsmInfo::MergeableConstSection(const Type *Ty) const { else if (Size == 16 && SixteenByteConstantSection) return SixteenByteConstantSection; - return getReadOnlySection_(); + return getReadOnlySection(); } const Section* @@ -152,7 +152,7 @@ DarwinTargetAsmInfo::SelectSectionForMachineConst(const Type *Ty) const { const Section* S = MergeableConstSection(Ty); // Handle weird special case, when compiling PIC stuff. - if (S == getReadOnlySection_() && + if (S == getReadOnlySection() && DTM->getRelocationModel() != Reloc::Static) return ConstDataSection; |