[llvm-profgen] Clean up code dealing with multiple binaries
authorwlei <wlei@fb.com>
Thu, 12 Aug 2021 01:01:37 +0000 (18:01 -0700)
committerwlei <wlei@fb.com>
Tue, 17 Aug 2021 19:16:07 +0000 (12:16 -0700)
commitf812c1925301a3efb189c1db28ab6c7842bc7705
treea0aa893e50a7e84847f95ef5afabe230e1996a43
parentf5616a981c60c619393c92d6180f128e934a36c9
[llvm-profgen] Clean up code dealing with multiple binaries

As we decided to support only one binary each time, this patch cleans up the related code dealing with multiple binaries. We can use `llvm-profdata` to merge profile from multiple binaries.

Reviewed By: hoy, wenlei

Differential Revision: https://reviews.llvm.org/D108002
llvm/tools/llvm-profgen/PerfReader.cpp
llvm/tools/llvm-profgen/PerfReader.h
llvm/tools/llvm-profgen/ProfileGenerator.cpp
llvm/tools/llvm-profgen/ProfileGenerator.h
llvm/tools/llvm-profgen/ProfiledBinary.h
llvm/tools/llvm-profgen/llvm-profgen.cpp