diff options
author | Snehasish Kumar <snehasishk@google.com> | 2022-02-03 16:09:23 -0800 |
---|---|---|
committer | Snehasish Kumar <snehasishk@google.com> | 2022-02-03 16:14:05 -0800 |
commit | dbf47d227d080e4eb7239b589660f51d7b08afa9 (patch) | |
tree | 243b32199c3f0c5813ae4eb6d39801dcf566ee22 /llvm/tools/llvm-profdata/llvm-profdata.cpp | |
parent | e8485b744ab87444dd55631fa22eb7b18c9d52b8 (diff) | |
download | llvm-dbf47d227d080e4eb7239b589660f51d7b08afa9.zip llvm-dbf47d227d080e4eb7239b589660f51d7b08afa9.tar.gz llvm-dbf47d227d080e4eb7239b589660f51d7b08afa9.tar.bz2 |
Revert "[ProfileData] Read and symbolize raw memprof profiles."
This reverts commit 26f978d4c5ad0d2217940ef7625b0c3c0d576988.
This patch added a transitive dependency on libcurl via symbolize.
See discussion
https://reviews.llvm.org/D116784#inline-1137928
https://reviews.llvm.org/D113717#3295350
Diffstat (limited to 'llvm/tools/llvm-profdata/llvm-profdata.cpp')
-rw-r--r-- | llvm/tools/llvm-profdata/llvm-profdata.cpp | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/llvm/tools/llvm-profdata/llvm-profdata.cpp b/llvm/tools/llvm-profdata/llvm-profdata.cpp index 71f07f5..9a345b4 100644 --- a/llvm/tools/llvm-profdata/llvm-profdata.cpp +++ b/llvm/tools/llvm-profdata/llvm-profdata.cpp @@ -19,7 +19,6 @@ #include "llvm/ProfileData/InstrProfCorrelator.h" #include "llvm/ProfileData/InstrProfReader.h" #include "llvm/ProfileData/InstrProfWriter.h" -#include "llvm/ProfileData/MemProf.h" #include "llvm/ProfileData/ProfileCommon.h" #include "llvm/ProfileData/RawMemProfReader.h" #include "llvm/ProfileData/SampleProfReader.h" @@ -2481,16 +2480,10 @@ static int showSampleProfile(const std::string &Filename, bool ShowCounts, return 0; } -static int showMemProfProfile(const std::string &Filename, - const std::string &ProfiledBinary, - raw_fd_ostream &OS) { - auto ReaderOr = - llvm::memprof::RawMemProfReader::create(Filename, ProfiledBinary); +static int showMemProfProfile(const std::string &Filename, raw_fd_ostream &OS) { + auto ReaderOr = llvm::memprof::RawMemProfReader::create(Filename); if (Error E = ReaderOr.takeError()) - // Since the error can be related to the profile or the binary we do not - // pass whence. Instead additional context is provided where necessary in - // the error message. - exitWithError(std::move(E), /*Whence*/ ""); + exitWithError(std::move(E), Filename); std::unique_ptr<llvm::memprof::RawMemProfReader> Reader( ReaderOr.get().release()); @@ -2595,9 +2588,6 @@ static int show_main(int argc, const char *argv[]) { cl::opt<bool> ShowCovered( "covered", cl::init(false), cl::desc("Show only the functions that have been executed.")); - cl::opt<std::string> ProfiledBinary( - "profiled-binary", cl::init(""), - cl::desc("Path to binary from which the profile was collected.")); cl::ParseCommandLineOptions(argc, argv, "LLVM profile data summary\n"); @@ -2635,7 +2625,7 @@ static int show_main(int argc, const char *argv[]) { ShowAllFunctions, ShowDetailedSummary, ShowFunction, ShowProfileSymbolList, ShowSectionInfoOnly, ShowHotFuncList, OS); - return showMemProfProfile(Filename, ProfiledBinary, OS); + return showMemProfProfile(Filename, OS); } int main(int argc, const char *argv[]) { |