summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/DarwinTargetAsmInfo.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-07-27 16:20:58 +0000
committerChris Lattner <sabre@nondot.org>2009-07-27 16:20:58 +0000
commitc51f3394f31494bdd51d0e0ec9bd0641f4586ae9 (patch)
treeab0725b2033c692d9375e1ad1814889975a51302 /llvm/lib/Target/DarwinTargetAsmInfo.cpp
parenta77a182b04a5f3ee15eacf50883dd61d549f1634 (diff)
downloadbcm5719-llvm-c51f3394f31494bdd51d0e0ec9bd0641f4586ae9.tar.gz
bcm5719-llvm-c51f3394f31494bdd51d0e0ec9bd0641f4586ae9.zip
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
Diffstat (limited to 'llvm/lib/Target/DarwinTargetAsmInfo.cpp')
-rw-r--r--llvm/lib/Target/DarwinTargetAsmInfo.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Target/DarwinTargetAsmInfo.cpp b/llvm/lib/Target/DarwinTargetAsmInfo.cpp
index 244b689a552..5429e659268 100644
--- a/llvm/lib/Target/DarwinTargetAsmInfo.cpp
+++ b/llvm/lib/Target/DarwinTargetAsmInfo.cpp
@@ -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:
OpenPOWER on IntegriCloud