forked from OSchip/llvm-project
sink text/data section creation down into the target-specific places that
should know about them. PECoff doesn't share these, and I want all sections to be created by object-file-specific code. llvm-svn: 77196
This commit is contained in:
parent
a77a182b04
commit
c51f3394f3
|
@ -27,6 +27,8 @@ using namespace llvm;
|
|||
|
||||
DarwinTargetAsmInfo::DarwinTargetAsmInfo(const TargetMachine &TM)
|
||||
: TargetAsmInfo(TM) {
|
||||
TextSection = getOrCreateSection("\t.text", true, SectionKind::Text);
|
||||
DataSection = getOrCreateSection("\t.data", true, SectionKind::DataRel);
|
||||
|
||||
CStringSection_ = getOrCreateSection("\t.cstring", true,
|
||||
SectionKind::MergeableCString);
|
||||
|
@ -50,7 +52,6 @@ DarwinTargetAsmInfo::DarwinTargetAsmInfo(const TargetMachine &TM)
|
|||
SectionKind::ReadOnlyWithRel);
|
||||
DataCoalSection = getOrCreateSection("\t__DATA,__datacoal_nt,coalesced",
|
||||
false, SectionKind::DataRel);
|
||||
|
||||
|
||||
// Common settings for all Darwin targets.
|
||||
// Syntax:
|
||||
|
|
|
@ -26,6 +26,9 @@ using namespace llvm;
|
|||
|
||||
ELFTargetAsmInfo::ELFTargetAsmInfo(const TargetMachine &TM)
|
||||
: TargetAsmInfo(TM) {
|
||||
|
||||
TextSection = getOrCreateSection("\t.text", true, SectionKind::Text);
|
||||
DataSection = getOrCreateSection("\t.data", true, SectionKind::DataRel);
|
||||
ReadOnlySection =
|
||||
getOrCreateSection("\t.rodata", false, SectionKind::ReadOnly);
|
||||
TLSDataSection =
|
||||
|
|
Loading…
Reference in New Issue