[llvm] 4ecf15b - [llvm-profdata] Make -debug-info visible
Kyungwoo Lee via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 28 17:36:12 PST 2021
Author: Kyungwoo Lee
Date: 2021-12-28T17:35:08-08:00
New Revision: 4ecf15b789f6043cdd2cfc50196d9f0c4d758f8a
URL: https://github.com/llvm/llvm-project/commit/4ecf15b789f6043cdd2cfc50196d9f0c4d758f8a
DIFF: https://github.com/llvm/llvm-project/commit/4ecf15b789f6043cdd2cfc50196d9f0c4d758f8a.diff
LOG: [llvm-profdata] Make -debug-info visible
Add the option comment in .rst.
Reviewed By: ellis
Differential Revision: https://reviews.llvm.org/D116348
Added:
Modified:
llvm/docs/CommandGuide/llvm-profdata.rst
llvm/tools/llvm-profdata/llvm-profdata.cpp
Removed:
################################################################################
diff --git a/llvm/docs/CommandGuide/llvm-profdata.rst b/llvm/docs/CommandGuide/llvm-profdata.rst
index 7c99e14aee694..7c3db6fa5418a 100644
--- a/llvm/docs/CommandGuide/llvm-profdata.rst
+++ b/llvm/docs/CommandGuide/llvm-profdata.rst
@@ -185,6 +185,13 @@ OPTIONS
inlined by PGO early inliner and it will not be adjusted based on sample
profile.
+.. option:: -debug-info=path
+
+ Specify the executable or `.dSYM` that contains debug info for the raw profile.
+ When `-debug-info-correlate` was used for instrumentation, use this option
+ to correlate the raw profile.
+
+
EXAMPLES
^^^^^^^^
Basic Usage
diff --git a/llvm/tools/llvm-profdata/llvm-profdata.cpp b/llvm/tools/llvm-profdata/llvm-profdata.cpp
index 285b41f57147d..6c12750a9ddf1 100644
--- a/llvm/tools/llvm-profdata/llvm-profdata.cpp
+++ b/llvm/tools/llvm-profdata/llvm-profdata.cpp
@@ -968,7 +968,7 @@ static int merge_main(int argc, const char *argv[]) {
"gen-cs-nested-profile", cl::Hidden, cl::init(false),
cl::desc("Generate nested function profiles for CSSPGO"));
cl::opt<std::string> DebugInfoFilename(
- "debug-info", cl::init(""), cl::Hidden,
+ "debug-info", cl::init(""),
cl::desc("Use the provided debug info to correlate the raw profile."));
cl::ParseCommandLineOptions(argc, argv, "LLVM profile data merger\n");
More information about the llvm-commits
mailing list