Object: Abstract out the determination of function line symbols
[oota-llvm.git] / include / llvm / Object / COFF.h
index 0f24c1b8e51eeab9b7122c7d07ee1a47cf77bcb8..31b7d6ea174fcbf59f6d637dc5d75e31ff09ecc8 100644 (file)
@@ -210,6 +210,10 @@ struct coff_symbol {
            !COFF::isReservedSectionNumber(SectionNumber);
   }
 
+  bool isFunctionLineInfo() const {
+    return StorageClass == COFF::IMAGE_SYM_CLASS_FUNCTION;
+  }
+
   bool isWeakExternal() const {
     return StorageClass == COFF::IMAGE_SYM_CLASS_WEAK_EXTERNAL ||
            (StorageClass == COFF::IMAGE_SYM_CLASS_EXTERNAL &&