diff options
author | David Blaikie <dblaikie@gmail.com> | 2019-12-12 16:53:59 -0800 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2019-12-12 16:53:59 -0800 |
commit | 8e04896288d22ed8bef7ac367923374f96b753d6 (patch) | |
tree | 36482d38ea883451211f7b7b1263123def77fad7 /llvm/lib/CodeGen/AsmPrinter/DwarfFile.h | |
parent | 20e06a28dac65a68bfd906d703e980a8212f6187 (diff) | |
download | bcm5719-llvm-8e04896288d22ed8bef7ac367923374f96b753d6.tar.gz bcm5719-llvm-8e04896288d22ed8bef7ac367923374f96b753d6.zip |
NFC: DebugInfo: Refactor RangeSpanList to be a struct, like DebugLocStream::List
Move these data structures closer together so their emission code can
eventually share more of its implementation.
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfFile.h')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfFile.h | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfFile.h b/llvm/lib/CodeGen/AsmPrinter/DwarfFile.h index 35fa51fb24c..cf293d7534d 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfFile.h +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfFile.h @@ -37,21 +37,12 @@ struct RangeSpan { const MCSymbol *End; }; -class RangeSpanList { -private: +struct RangeSpanList { // Index for locating within the debug_range section this particular span. - MCSymbol *RangeSym; + MCSymbol *Label; const DwarfCompileUnit *CU; // List of ranges. SmallVector<RangeSpan, 2> Ranges; - -public: - RangeSpanList(MCSymbol *Sym, const DwarfCompileUnit &CU, - SmallVector<RangeSpan, 2> Ranges) - : RangeSym(Sym), CU(&CU), Ranges(std::move(Ranges)) {} - MCSymbol *getSym() const { return RangeSym; } - const DwarfCompileUnit &getCU() const { return *CU; } - const SmallVectorImpl<RangeSpan> &getRanges() const { return Ranges; } }; class DwarfFile { |