/// ShouldPrintSectionType - Only prints the section type if supported
bool ShouldPrintSectionType(unsigned Ty) const;
+
+ /// IsCommon - True if this section contains only common symbols
+ bool IsCommon() const;
/// These are the section type and flags fields. An ELF section can have
/// only one Type, but can have more than one of the flags specified.
OS << '\n';
}
+// IsCommon - True if this section contains only common symbols
+bool MCSectionELF::IsCommon() const {
+
+ if (strncmp(SectionName.c_str(), ".gnu.linkonce.", 14) == 0)
+ return true;
+
+ return false;
+}
+
+