diff options
Diffstat (limited to 'llvm/tools/llvm-lto2/llvm-lto2.cpp')
-rw-r--r-- | llvm/tools/llvm-lto2/llvm-lto2.cpp | 29 |
1 files changed, 14 insertions, 15 deletions
diff --git a/llvm/tools/llvm-lto2/llvm-lto2.cpp b/llvm/tools/llvm-lto2/llvm-lto2.cpp index 7f8b5beb716..72d80f64a96 100644 --- a/llvm/tools/llvm-lto2/llvm-lto2.cpp +++ b/llvm/tools/llvm-lto2/llvm-lto2.cpp @@ -91,21 +91,20 @@ static cl::opt<std::string> DefaultTriple( cl::desc( "Replace unspecified target triples in input files with this triple")); -static cl::opt<bool> RemarksWithHotness( - "pass-remarks-with-hotness", - cl::desc("With PGO, include profile count in optimization remarks"), - cl::Hidden); - static cl::opt<std::string> - RemarksFilename("pass-remarks-output", - cl::desc("Output filename for pass remarks"), - cl::value_desc("filename")); + OptRemarksOutput("pass-remarks-output", + cl::desc("YAML output file for optimization remarks")); + +static cl::opt<bool> OptRemarksWithHotness( + "pass-remarks-with-hotness", + cl::desc("Whether to include hotness informations in the remarks.\n" + "Has effect only if -pass-remarks-output is specified.")); static cl::opt<std::string> - RemarksPasses("pass-remarks-filter", - cl::desc("Only record optimization remarks from passes whose " - "names match the given regular expression"), - cl::value_desc("regex")); + OptRemarksPasses("pass-remarks-filter", + cl::desc("Only record optimization remarks from passes " + "whose names match the given regular expression"), + cl::value_desc("regex")); static cl::opt<std::string> SamplePGOFile("lto-sample-profile-file", @@ -226,9 +225,9 @@ static int run(int argc, char **argv) { "Config::addSaveTemps failed"); // Optimization remarks. - Conf.RemarksFilename = RemarksFilename; - Conf.RemarksPasses = RemarksPasses; - Conf.RemarksWithHotness = RemarksWithHotness; + Conf.RemarksFilename = OptRemarksOutput; + Conf.RemarksPasses = OptRemarksPasses; + Conf.RemarksWithHotness = OptRemarksWithHotness; Conf.SampleProfile = SamplePGOFile; Conf.CSIRProfile = CSPGOFile; |