diff options
author | Alon Zakai <azakai@google.com> | 2020-01-16 15:51:32 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-16 15:51:32 -0800 |
commit | 0ec999db121197d7da242dd4a1136997e02c67cc (patch) | |
tree | 603292a1441e3cd39157eb258f233f44f1a31a21 /src/passes/Print.cpp | |
parent | 0848a27fdecf3ffd5170986dceec7ba04c4e50a0 (diff) | |
download | binaryen-0ec999db121197d7da242dd4a1136997e02c67cc.tar.gz binaryen-0ec999db121197d7da242dd4a1136997e02c67cc.tar.bz2 binaryen-0ec999db121197d7da242dd4a1136997e02c67cc.zip |
DWARF: high_pc computation (#2595)
Update high_pc values. These are interesting as they
may be a relative offset compared to the low_pc.
For functions we already had both a start and an end. Add
such tracking for instructions as well.
Diffstat (limited to 'src/passes/Print.cpp')
-rw-r--r-- | src/passes/Print.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/passes/Print.cpp b/src/passes/Print.cpp index 866b0d8f8..5504373f5 100644 --- a/src/passes/Print.cpp +++ b/src/passes/Print.cpp @@ -1443,8 +1443,8 @@ struct PrintSExpression : public OverriddenVisitor<PrintSExpression> { auto iter = currFunction->expressionLocations.find(curr); if (iter != currFunction->expressionLocations.end()) { Colors::grey(o); - o << ";; code offset: 0x" << std::hex << iter->second << std::dec - << '\n'; + o << ";; code offset: 0x" << std::hex << iter->second.start + << std::dec << '\n'; restoreNormalColor(o); doIndent(o, indent); } |