mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-30 02:25:19 +00:00
change SrcLineInfo to contain a label instead of a label ID.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98483 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -45,16 +45,16 @@ class SrcLineInfo {
|
||||
unsigned Line; // Source line number.
|
||||
unsigned Column; // Source column.
|
||||
unsigned SourceID; // Source ID number.
|
||||
unsigned LabelID; // Label in code ID number.
|
||||
MCSymbol *Label; // Label in code ID number.
|
||||
public:
|
||||
SrcLineInfo(unsigned L, unsigned C, unsigned S, unsigned I)
|
||||
: Line(L), Column(C), SourceID(S), LabelID(I) {}
|
||||
SrcLineInfo(unsigned L, unsigned C, unsigned S, MCSymbol *label)
|
||||
: Line(L), Column(C), SourceID(S), Label(label) {}
|
||||
|
||||
// Accessors
|
||||
unsigned getLine() const { return Line; }
|
||||
unsigned getColumn() const { return Column; }
|
||||
unsigned getSourceID() const { return SourceID; }
|
||||
unsigned getLabelID() const { return LabelID; }
|
||||
MCSymbol *getLabel() const { return Label; }
|
||||
};
|
||||
|
||||
class DwarfDebug : public DwarfPrinter {
|
||||
|
Reference in New Issue
Block a user