mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-24 22:24:54 +00:00
Make RangeSpanList take a symbol for the beginning of the range
rather than magically making the names match. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196419 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -45,13 +45,13 @@ private:
|
||||
class RangeSpanList {
|
||||
private:
|
||||
// Index for locating within the debug_range section this particular span.
|
||||
unsigned Index;
|
||||
MCSymbol *RangeSym;
|
||||
// List of ranges.
|
||||
SmallVector<RangeSpan, 2> Ranges;
|
||||
|
||||
public:
|
||||
RangeSpanList(unsigned Idx) : Index(Idx) {}
|
||||
unsigned getIndex() const { return Index; }
|
||||
RangeSpanList(MCSymbol *Sym) : RangeSym(Sym) {}
|
||||
MCSymbol *getSym() const { return RangeSym; }
|
||||
const SmallVectorImpl<RangeSpan> &getRanges() const { return Ranges; }
|
||||
void addRange(RangeSpan Range) { Ranges.push_back(Range); }
|
||||
};
|
||||
|
Reference in New Issue
Block a user