diff options
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h')
| -rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h index 56a1d633729..4459a5051e4 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h @@ -261,6 +261,9 @@ class DwarfDebug : public DebugHandlerBase { /// Whether to emit DWARF pub sections or not. bool UsePubSections = true; + /// Allow emission of .debug_ranges section. + bool UseRangesSection = true; + /// DWARF5 Experimental Options /// @{ bool HasDwarfAccelTables; @@ -507,6 +510,9 @@ public: /// Returns whether GNU oub sections should be emitted. bool usePubSections() const { return UsePubSections; } + /// Returns whether ranges section should be emitted. + bool useRangesSection() const { return UseRangesSection; } + // Experimental DWARF5 features. /// Returns whether or not to emit tables that dwarf consumers can |

