[llvm-commits] [llvm] r56581 - /llvm/trunk/lib/Target/DarwinTargetAsmInfo.cpp
Anton Korobeynikov
asl at math.spbu.ru
Wed Sep 24 15:19:13 PDT 2008
Author: asl
Date: Wed Sep 24 17:19:13 2008
New Revision: 56581
URL: http://llvm.org/viewvc/llvm-project?rev=56581&view=rev
Log:
Use named sections, where they should be
Modified:
llvm/trunk/lib/Target/DarwinTargetAsmInfo.cpp
Modified: llvm/trunk/lib/Target/DarwinTargetAsmInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/DarwinTargetAsmInfo.cpp?rev=56581&r1=56580&r2=56581&view=diff
==============================================================================
--- llvm/trunk/lib/Target/DarwinTargetAsmInfo.cpp (original)
+++ llvm/trunk/lib/Target/DarwinTargetAsmInfo.cpp Wed Sep 24 17:19:13 2008
@@ -40,16 +40,14 @@
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
More information about the llvm-commits
mailing list