diff options
Diffstat (limited to 'lib/Target/TargetAsmInfo.cpp')
-rw-r--r-- | lib/Target/TargetAsmInfo.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/lib/Target/TargetAsmInfo.cpp b/lib/Target/TargetAsmInfo.cpp index eb74836..9bc0b40 100644 --- a/lib/Target/TargetAsmInfo.cpp +++ b/lib/Target/TargetAsmInfo.cpp @@ -306,15 +306,9 @@ TargetAsmInfo::SelectSectionForGlobal(const GlobalValue *GV) const { } else { if (Kind == SectionKind::Text) return getTextSection_(); - else if ((Kind == SectionKind::BSS || - Kind == SectionKind::SmallBSS) && - getBSSSection_()) + else if (isBSS(Kind) && getBSSSection_()) return getBSSSection_(); - else if (getReadOnlySection_() && - (Kind == SectionKind::ROData || - Kind == SectionKind::RODataMergeConst || - Kind == SectionKind::RODataMergeStr || - Kind == SectionKind::SmallROData)) + else if (getReadOnlySection_() && SectionKind::isReadOnly(Kind)) return getReadOnlySection_(); } |