diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2020-01-17 20:45:01 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2020-01-17 20:45:01 +0000 |
commit | 706b4fc47bbc608932d3b491ae19a3b9cde9497b (patch) | |
tree | 4adf86a776049cbf7f69a1929c4babcbbef925eb /llvm/lib/CodeGen/AsmPrinter/DwarfFile.h | |
parent | 7cc9cf2bf09f069cb2dd947ead05d0b54301fb71 (diff) |
Notes
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 35fa51fb24c4..cf293d7534d0 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 { |