Lines 1093-1107
void DwarfDebug::beginInstruction(const MachineInstr *MI) {
Link Here
|
1093 |
if (!MI->isDebugValue()) { |
1093 |
if (!MI->isDebugValue()) { |
1094 |
DebugLoc DL = MI->getDebugLoc(); |
1094 |
DebugLoc DL = MI->getDebugLoc(); |
1095 |
if (DL != PrevInstLoc && (!DL.isUnknown() || UnknownLocations)) { |
1095 |
if (DL != PrevInstLoc && (!DL.isUnknown() || UnknownLocations)) { |
1096 |
unsigned Flags = 0; |
1096 |
unsigned Flags = DWARF2_FLAG_IS_STMT; |
1097 |
PrevInstLoc = DL; |
1097 |
PrevInstLoc = DL; |
1098 |
if (DL == PrologEndLoc) { |
1098 |
if (DL == PrologEndLoc) { |
1099 |
Flags |= DWARF2_FLAG_PROLOGUE_END; |
1099 |
Flags |= DWARF2_FLAG_PROLOGUE_END; |
1100 |
PrologEndLoc = DebugLoc(); |
1100 |
PrologEndLoc = DebugLoc(); |
1101 |
} |
1101 |
} |
1102 |
if (PrologEndLoc.isUnknown()) |
|
|
1103 |
Flags |= DWARF2_FLAG_IS_STMT; |
1104 |
|
1105 |
if (!DL.isUnknown()) { |
1102 |
if (!DL.isUnknown()) { |
1106 |
const MDNode *Scope = DL.getScope(Asm->MF->getFunction()->getContext()); |
1103 |
const MDNode *Scope = DL.getScope(Asm->MF->getFunction()->getContext()); |
1107 |
recordSourceLine(DL.getLine(), DL.getCol(), Scope, Flags); |
1104 |
recordSourceLine(DL.getLine(), DL.getCol(), Scope, Flags); |
Lines 1382-1388
void DwarfDebug::beginFunction(const MachineFunction *MF) {
Link Here
|
1382 |
MF->getFunction()->getContext()); |
1379 |
MF->getFunction()->getContext()); |
1383 |
recordSourceLine(FnStartDL.getLine(), FnStartDL.getCol(), |
1380 |
recordSourceLine(FnStartDL.getLine(), FnStartDL.getCol(), |
1384 |
FnStartDL.getScope(MF->getFunction()->getContext()), |
1381 |
FnStartDL.getScope(MF->getFunction()->getContext()), |
1385 |
0); |
1382 |
DWARF2_FLAG_IS_STMT); |
1386 |
} |
1383 |
} |
1387 |
} |
1384 |
} |
1388 |
|
1385 |
|