diff options
author | Reid Kleckner <rnk@google.com> | 2019-05-31 22:55:03 +0000 |
---|---|---|
committer | Reid Kleckner <rnk@google.com> | 2019-05-31 22:55:03 +0000 |
commit | eddd6c25b567bf2b75b38e9e09b80f69f87d7017 (patch) | |
tree | 280b6895fa86cb8e49dab779557f4dbac1ec537e /llvm/lib/MC/MCCodeView.cpp | |
parent | 7d4ec5af6c27c2c7225afbfd7b6460930a384ac6 (diff) | |
download | bcm5719-llvm-eddd6c25b567bf2b75b38e9e09b80f69f87d7017.tar.gz bcm5719-llvm-eddd6c25b567bf2b75b38e9e09b80f69f87d7017.zip |
[codeview] Revert inline line table change of r362264
Testing with debuggers shows that our previous behavior was correct.
The reason I thought MSVC did things differently is that MSVC prefers to
use the 0xB combined code offset and code length update opcode when
inline sites are discontiguous.
Keep the test changes, and update the llvm-pdbutil inline line table
dumper to account for this new interpretation of the opcodes.
llvm-svn: 362277
Diffstat (limited to 'llvm/lib/MC/MCCodeView.cpp')
-rw-r--r-- | llvm/lib/MC/MCCodeView.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/MC/MCCodeView.cpp b/llvm/lib/MC/MCCodeView.cpp index b2983c11e34..1a71b542bd0 100644 --- a/llvm/lib/MC/MCCodeView.cpp +++ b/llvm/lib/MC/MCCodeView.cpp @@ -535,6 +535,7 @@ void CodeViewContext::encodeInlineLineTable(MCAsmLayout &Layout, unsigned Length = computeLabelDiff(Layout, LastLabel, Loc.getLabel()); compressAnnotation(BinaryAnnotationsOpCode::ChangeCodeLength, Buffer); compressAnnotation(Length, Buffer); + LastLabel = Loc.getLabel(); } HaveOpenRange = false; continue; |