Use absolute label for DW_AT_stmt_list if a target does not prefer offset here.
[oota-llvm.git] / include / llvm / MC / MCAsmInfo.h
index 8516de0188d65b76c3fcb52bf8cf4fad8afaef17..176221eccfce20f4057ea9446eafaf17a323770c 100644 (file)
@@ -255,6 +255,10 @@ namespace llvm {
     /// DwarfSectionOffsetDirective - Special section offset directive.
     const char* DwarfSectionOffsetDirective; // Defaults to NULL
     
+    /// DwarfUsesAbsoluteLabelForStmtList - True if DW_AT_stmt_list needs 
+    /// absolute label instead of offset.
+    bool DwarfUsesAbsoluteLabelForStmtList;  // Defaults to true;
+
     //===--- CBE Asm Translation Table -----------------------------------===//
 
     const char *const *AsmTransCBE;          // Defaults to empty
@@ -417,6 +421,9 @@ namespace llvm {
     const char *getDwarfSectionOffsetDirective() const {
       return DwarfSectionOffsetDirective;
     }
+    bool doesDwarfUsesAbsoluteLabelForStmtList() const {
+      return DwarfUsesAbsoluteLabelForStmtList;
+    }
     const char *const *getAsmCBE() const {
       return AsmTransCBE;
     }