diff options
Diffstat (limited to 'llvm/lib/MC/MCDwarf.cpp')
| -rw-r--r-- | llvm/lib/MC/MCDwarf.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/llvm/lib/MC/MCDwarf.cpp b/llvm/lib/MC/MCDwarf.cpp index e3da87709de..4ab5ade8b8f 100644 --- a/llvm/lib/MC/MCDwarf.cpp +++ b/llvm/lib/MC/MCDwarf.cpp @@ -114,10 +114,6 @@ EmitDwarfLineTable(MCObjectStreamer *MCOS, MCSection *Section, int64_t LineDelta = static_cast<int64_t>(it->getLine()) - LastLine; - // Discriminator will be cleared if there is line change. - if (LineDelta != 0) - Discriminator = 0; - if (FileNum != it->getFileNum()) { FileNum = it->getFileNum(); MCOS->EmitIntValue(dwarf::DW_LNS_set_file, 1); @@ -161,6 +157,7 @@ EmitDwarfLineTable(MCObjectStreamer *MCOS, MCSection *Section, MCOS->EmitDwarfAdvanceLineAddr(LineDelta, LastLabel, Label, asmInfo->getPointerSize()); + Discriminator = 0; LastLine = it->getLine(); LastLabel = Label; } |

