[PATCH] D116348: [llvm-profdata] Make -debug-info visible

Kyungwoo Lee via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 28 17:09:12 PST 2021


kyulee created this revision.
kyulee requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Add the option comment in .rst.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D116348

Files:
  llvm/docs/CommandGuide/llvm-profdata.rst
  llvm/tools/llvm-profdata/llvm-profdata.cpp


Index: llvm/tools/llvm-profdata/llvm-profdata.cpp
===================================================================
--- llvm/tools/llvm-profdata/llvm-profdata.cpp
+++ llvm/tools/llvm-profdata/llvm-profdata.cpp
@@ -968,7 +968,7 @@
       "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");
Index: llvm/docs/CommandGuide/llvm-profdata.rst
===================================================================
--- llvm/docs/CommandGuide/llvm-profdata.rst
+++ llvm/docs/CommandGuide/llvm-profdata.rst
@@ -185,6 +185,13 @@
  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 raw profile.
+ When `-debug-info-correlate` was used for an instrumentation, use this option
+ to correlate the raw profile.
+
+
 EXAMPLES
 ^^^^^^^^
 Basic Usage


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D116348.396445.patch
Type: text/x-patch
Size: 1213 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211229/1b8e1020/attachment.bin>


More information about the llvm-commits mailing list