aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
diff options
context:
space:
mode:
authorXing Xue <xingxue@outlook.com>2019-08-25 15:17:25 +0000
committerXing Xue <xingxue@outlook.com>2019-08-25 15:17:25 +0000
commitef039a3ccdcd39c558c1d1a360b59bbb9bb11af5 (patch)
treef2823223d2dc5604a4852e70219df5402ff2729e /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
parent76f005535addf2ac4817c4f3a1c50330c44a6b57 (diff)
downloadllvm-ef039a3ccdcd39c558c1d1a360b59bbb9bb11af5.zip
llvm-ef039a3ccdcd39c558c1d1a360b59bbb9bb11af5.tar.gz
llvm-ef039a3ccdcd39c558c1d1a360b59bbb9bb11af5.tar.bz2
[PowerPC][AIX] Adds support for writing the .data section in assembly files
Summary: Adds support for generating the .data section in assembly files for global variables with a non-zero initialization. The support for writing the .data section in XCOFF object files will be added in a follow-on patch. Any relocations are not included in this patch. Reviewers: hubert.reinterpretcast, sfertile, jasonliu, daltenty, Xiangling_L Reviewed by: hubert.reinterpretcast Subscribers: nemanjai, hiraditya, kbarton, MaskRay, jsji, wuzish, shchenz, DiggerLin, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D66154 llvm-svn: 369869
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp')
-rw-r--r--llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp b/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
index 1505c9d..653f30a 100644
--- a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
+++ b/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
@@ -1849,6 +1849,9 @@ MCSection *TargetLoweringObjectFileXCOFF::SelectSectionForGlobal(
if (Kind.isText())
return TextSection;
+ if (Kind.isData())
+ return DataSection;
+
report_fatal_error("XCOFF other section types not yet implemented.");
}