diff options
author | Anton Korobeynikov <asl@math.spbu.ru> | 2008-09-24 22:19:13 +0000 |
---|---|---|
committer | Anton Korobeynikov <asl@math.spbu.ru> | 2008-09-24 22:19:13 +0000 |
commit | d79cda9232a620e4fe2bf713a8656948e5fc28aa (patch) | |
tree | 7663fd21c0a78f298e7172321fa26cbb1855d656 | |
parent | 6481873dc042d33c974399a7761a72524d1fe957 (diff) | |
download | external_llvm-d79cda9232a620e4fe2bf713a8656948e5fc28aa.zip external_llvm-d79cda9232a620e4fe2bf713a8656948e5fc28aa.tar.gz external_llvm-d79cda9232a620e4fe2bf713a8656948e5fc28aa.tar.bz2 |
Use named sections, where they should be
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56581 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Target/DarwinTargetAsmInfo.cpp | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/lib/Target/DarwinTargetAsmInfo.cpp b/lib/Target/DarwinTargetAsmInfo.cpp index 5612515..55d0c42 100644 --- a/lib/Target/DarwinTargetAsmInfo.cpp +++ b/lib/Target/DarwinTargetAsmInfo.cpp @@ -40,16 +40,14 @@ DarwinTargetAsmInfo::DarwinTargetAsmInfo(const TargetMachine &TM) { ReadOnlySection_ = getUnnamedSection("\t.const\n", SectionFlags::None); - // FIXME: These should be named sections, really. TextCoalSection = - getUnnamedSection(".section __TEXT,__textcoal_nt,coalesced,pure_instructions", + getNamedSection("\t__TEXT,__textcoal_nt,coalesced,pure_instructions", SectionFlags::Code); - ConstDataCoalSection = - getUnnamedSection(".section __DATA,__const_coal,coalesced", - SectionFlags::None); + ConstDataCoalSection = getBamedSection("\t__DATA,__const_coal,coalesced", + SectionFlags::None); ConstDataSection = getUnnamedSection(".const_data", SectionFlags::None); - DataCoalSection = getUnnamedSection(".section __DATA,__datacoal_nt,coalesced", - SectionFlags::Writeable); + DataCoalSection = getNamedSection("\t__DATA,__datacoal_nt,coalesced", + SectionFlags::Writeable); } /// emitUsedDirectiveFor - On Darwin, internally linked data beginning with |