diff options
author | Fangrui Song <maskray@google.com> | 2019-04-11 02:02:44 +0000 |
---|---|---|
committer | Fangrui Song <maskray@google.com> | 2019-04-11 02:02:44 +0000 |
commit | 6a285dfe71cbf4713cf8be92e83360553d5c93b8 (patch) | |
tree | d933b2f30126355f04276e91fe0bf700458f362a /llvm/docs/tutorial/MyFirstLanguageFrontend | |
parent | ff79ee144cd62ee4b6eae2f2f809130cda32cadb (diff) | |
download | llvm-6a285dfe71cbf4713cf8be92e83360553d5c93b8.zip llvm-6a285dfe71cbf4713cf8be92e83360553d5c93b8.tar.gz llvm-6a285dfe71cbf4713cf8be92e83360553d5c93b8.tar.bz2 |
[DWARF] Set discriminator to 0 for DW_LNS_copy
Summary:
Make DW_LNS_copy set the discriminator register to 0, to conform to
DWARF 4 & 5: "Then it sets the discriminator register to 0, and sets the
basic_block, prologue_end and epilogue_begin registers to false."
Because all of DW_LNE_end_sequence, DN_LNS_copy, and special opcodes reset
discriminator to 0, we can move discriminator=0 to appendRowToMatrix.
Also, make DW_LNS_copy print before appending the row, as it is similar
to a address+=0,line+=0 special opcode, which prints before appending
the row.
Reviewers: dblaikie, probinson, aprantl
Reviewed By: dblaikie
Subscribers: danielcdh, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D60364
llvm-svn: 358148
Diffstat (limited to 'llvm/docs/tutorial/MyFirstLanguageFrontend')
0 files changed, 0 insertions, 0 deletions