diff --git a/llvm/docs/CommandGuide/llvm-profdata.rst b/llvm/docs/CommandGuide/llvm-profdata.rst --- a/llvm/docs/CommandGuide/llvm-profdata.rst +++ b/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 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 --- a/llvm/tools/llvm-profdata/llvm-profdata.cpp +++ b/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 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");