Tie small stuff to non-small by default on ELF platforms
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53919 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Target/ELFTargetAsmInfo.cpp b/lib/Target/ELFTargetAsmInfo.cpp
index eb3608d..6ce01a8 100644
--- a/lib/Target/ELFTargetAsmInfo.cpp
+++ b/lib/Target/ELFTargetAsmInfo.cpp
@@ -63,11 +63,14 @@
} else {
switch (Kind) {
case SectionKind::Data:
+ case SectionKind::SmallData:
return getDataSection_();
case SectionKind::BSS:
+ case SectionKind::SmallBSS:
// ELF targets usually have BSS sections
return getBSSSection_();
case SectionKind::ROData:
+ case SectionKind::SmallROData:
return getReadOnlySection_();
case SectionKind::RODataMergeStr:
return MergeableStringSection(GVar);
@@ -147,6 +150,8 @@
Flags += 'S';
if (flags & SectionFlags::TLS)
Flags += 'T';
+ if (flags & SectionFlags::Small)
+ Flags += 's';
Flags += "\"";