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 | 91a6705839f1da638f7b0834434e83b4b1a4b570 (patch) | |
tree | bd82f2813917d6e02799bf37f01f4bc61eb6858e /llvm/lib/Target/DarwinTargetAsmInfo.cpp | |
parent | 5906234c1d9134357ead91d7da8246acf24167d4 (diff) | |
download | bcm5719-llvm-91a6705839f1da638f7b0834434e83b4b1a4b570.tar.gz bcm5719-llvm-91a6705839f1da638f7b0834434e83b4b1a4b570.zip |
Use named sections, where they should be
llvm-svn: 56581
Diffstat (limited to 'llvm/lib/Target/DarwinTargetAsmInfo.cpp')
-rw-r--r-- | llvm/lib/Target/DarwinTargetAsmInfo.cpp | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/llvm/lib/Target/DarwinTargetAsmInfo.cpp b/llvm/lib/Target/DarwinTargetAsmInfo.cpp index 5612515027a..55d0c429c75 100644 --- a/llvm/lib/Target/DarwinTargetAsmInfo.cpp +++ b/llvm/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 |