[PATCH] D108002: [llvm-profgen] Clean up code dealing with multiple binaries

Lei Wang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 13 16:41:20 PDT 2021


wlei added inline comments.


================
Comment at: llvm/tools/llvm-profgen/PerfReader.cpp:297
 
-ProfiledBinary &PerfReaderBase::loadBinary(const StringRef BinaryPath,
-                                           bool AllowNameConflict) {
-  // The binary table is currently indexed by the binary name not the full
-  // binary path. This is because the user-given path may not match the one
-  // that was actually executed.
-  StringRef BinaryName = llvm::sys::path::filename(BinaryPath);
-
+void PerfReaderBase::loadBinary(StringRef BinaryPath) {
   // Call to load the binary in the ctor of ProfiledBinary.
----------------
wenlei wrote:
> is the removal of `const` intentional?
Good catch!


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D108002/new/

https://reviews.llvm.org/D108002



More information about the llvm-commits mailing list