Call the version of ConvertCostTableLookup that takes a statically sized array rather...
[oota-llvm.git] / lib / MC / MCSectionELF.cpp
index b4448d79a2d5b5925253902ec1c02d3461713f52..92d2b9667c80513d2af238106369f050516d6fb2 100644 (file)
@@ -27,12 +27,7 @@ bool MCSectionELF::ShouldOmitSectionDirective(StringRef Name,
   if (isUnique())
     return false;
 
-  // FIXME: Does .section .bss/.data/.text work everywhere??
-  if (Name == ".text" || Name == ".data" ||
-      (Name == ".bss" && !MAI.usesELFSectionDirectiveForBSS()))
-    return true;
-
-  return false;
+  return MAI.shouldOmitSectionDirective(Name);
 }
 
 static void printName(raw_ostream &OS, StringRef Name) {