From 40cce094a3456800dd0588229cfee636007cf78c Mon Sep 17 00:00:00 2001 From: Nick Lewycky Date: Tue, 18 Aug 2009 06:08:01 +0000 Subject: [PATCH] Include valgrind in the steps to reproduce if valgrind was used to reproduce the problem. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79322 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/bugpoint/OptimizerDriver.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/bugpoint/OptimizerDriver.cpp b/tools/bugpoint/OptimizerDriver.cpp index b38d8cfe836..257647f08f9 100644 --- a/tools/bugpoint/OptimizerDriver.cpp +++ b/tools/bugpoint/OptimizerDriver.cpp @@ -77,6 +77,7 @@ void BugDriver::EmitProgressBitcode(const std::string &ID, bool NoFlyer) { outs() << "Emitted bitcode to '" << Filename << "'\n"; if (NoFlyer || PassesToRun.empty()) return; outs() << "\n*** You can reproduce the problem with: "; + if (UseValgrind) outs() << "valgrind "; outs() << "opt " << Filename << " "; outs() << getPassesString(PassesToRun) << "\n"; }