Add read-only data assembly writing for aix
SUMMARY: The patch will emit read-only variable assembly code for aix. Reviewers: daltenty,Xiangling_Liao Subscribers: rupprecht, seiyai,hiraditya Differential Revision: https://reviews.llvm.org/D70182
This commit is contained in:
@@ -1861,6 +1861,10 @@ MCSection *TargetLoweringObjectFileXCOFF::SelectSectionForGlobal(
|
||||
if (Kind.isBSS())
|
||||
return DataSection;
|
||||
|
||||
if (Kind.isReadOnly() && !Kind.isMergeableConst() &&
|
||||
!Kind.isMergeableCString())
|
||||
return ReadOnlySection;
|
||||
|
||||
report_fatal_error("XCOFF other section types not yet implemented.");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user