[cfi] Help sanstats to find binary if they are not at the original location
authorVitaly Buka <vitalybuka@google.com>
Mon, 26 Nov 2018 21:48:55 +0000 (21:48 +0000)
committerVitaly Buka <vitalybuka@google.com>
Mon, 26 Nov 2018 21:48:55 +0000 (21:48 +0000)
commitdfe8474e489d63998c582a96e1504a6152f74321
tree40be1646058906f3288ff09021a9a7cfb4e31ca4
parentdb87ced890a6f949895ddbd233d752dfed5a65c2
[cfi] Help sanstats to find binary if they are not at the original location

Summary:
By default sanstats search binaries at the same location where they were when
stats was collected. Sometime you can not print report immediately or you need
to move post-processing to another workstation. To support this use-case when
original binary is missing sanstats will fall-back to directory with sanstats
file.

Reviewers: pcc

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D53857

llvm-svn: 347601
llvm/test/tools/sanstats/elf.test
llvm/tools/sanstats/sanstats.cpp