Adds a "Discriminator" field to struct DILineInfo, which defaults to 0.
Fills out the "Discriminator" field in DILineInfo in DWARFDebugLine::LineTable::getFileLineInfoForAddress().
in order to have a slightly nicer interface in getFileLineInfoForAddress.
Patch by Simon Que!
Differential Revision: https://reviews.llvm.org/D27649
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@289683
91177308-0d34-0410-b5e6-
96231b3b80d8
uint32_t Line;
uint32_t Column;
+ // DWARF-specific.
+ uint32_t Discriminator;
+
DILineInfo()
- : FileName("<invalid>"), FunctionName("<invalid>"), Line(0), Column(0) {}
+ : FileName("<invalid>"), FunctionName("<invalid>"), Line(0), Column(0),
+ Discriminator(0) {}
bool operator==(const DILineInfo &RHS) const {
return Line == RHS.Line && Column == RHS.Column &&
return false;
Result.Line = Row.Line;
Result.Column = Row.Column;
+ Result.Discriminator = Row.Discriminator;
return true;
}