[X86] - Catch extra combine opportunities for redundant imuls.
[oota-llvm.git] / lib / MC / MCAsmInfo.cpp
index 100dc7c3dc60e799dc14b52936dd2dfd8b143d88..36e10b3c6a0738710756ef98d78cc4d2df21e1fd 100644 (file)
@@ -157,3 +157,9 @@ bool MCAsmInfo::isValidUnquotedName(StringRef Name) const {
 
   return true;
 }
+
+bool MCAsmInfo::shouldOmitSectionDirective(StringRef SectionName) const {
+  // FIXME: Does .section .bss/.data/.text work everywhere??
+  return SectionName == ".text" || SectionName == ".data" ||
+        (SectionName == ".bss" && !usesELFSectionDirectiveForBSS());
+}