[BOLT][Wrapper] Fix off-by-one when parsing 'cmp' output
authorJob Noorman <jnoorman@igalia.com>
Mon, 24 Apr 2023 18:54:23 +0000 (20:54 +0200)
committerJob Noorman <jnoorman@igalia.com>
Mon, 24 Apr 2023 18:54:56 +0000 (20:54 +0200)
commit8421c7ad304faee9056f43dc771f0ff76c14afec
treeab0deddbfe52d3180352b147abcb9eccd9af67bc
parent09115580056fc57d5cdaa1de20631a838a4ea1c4
[BOLT][Wrapper] Fix off-by-one when parsing 'cmp' output

The byte offsets in the output of 'cmp' start from 1, not from 0 as the
current parser assumes. This caused mismatched bytes to sometimes be
attributed to the wrong section.

Reviewed By: rafauler

Differential Revision: https://reviews.llvm.org/D149046
bolt/utils/llvm-bolt-wrapper.py