Displaying 1 result from an estimated 1 matches for "dwarf2_flag_is_stmt".
2013 Apr 26
0
[LLVMdev] Inconsistent use of is_stmt flag in .debug_line
...ogue
then we overwrite the earlier line table entry with a similar entry which lacks the is_stmt flag. The relevant code is:
unsigned Flags = 0;
PrevInstLoc = DL;
if (DL == PrologEndLoc) {
Flags |= DWARF2_FLAG_PROLOGUE_END;
PrologEndLoc = DebugLoc();
}
if (PrologEndLoc.isUnknown())
Flags |= DWARF2_FLAG_IS_STMT;
if (!DL.isUnknown()) {
const MDNode *Scope = DL.getScope(Asm->MF->getFunction()->getContext());
recordSourceLine(DL.getLine(), DL.getCol(), Scope, Flags);
It's easy to change this code to apply is_stmt for every line table entry but I think that this is the wrong approach....