Don't print a label before .cfi_startproc when we don't need to. This makes
[oota-llvm.git] / lib / MC / MCSectionCOFF.cpp
index eb531600f72736e55259b11bbc3e243eb9fc29ab..90091f06e9acd2513e818715bfcd485bdd58b290 100644 (file)
@@ -74,3 +74,11 @@ void MCSectionCOFF::PrintSwitchToSection(const MCAsmInfo &MAI,
     }
   }
 }
+
+bool MCSectionCOFF::UseCodeAlign() const {
+  return getKind().isText();
+}
+
+bool MCSectionCOFF::isVirtualSection() const {
+  return getCharacteristics() & COFF::IMAGE_SCN_CNT_UNINITIALIZED_DATA;
+}