From 0ec999db121197d7da242dd4a1136997e02c67cc Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Thu, 16 Jan 2020 15:51:32 -0800 Subject: 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. --- src/passes/Print.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/passes/Print.cpp') 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 { 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); } -- cgit v1.2.3