From: Nick Lewycky Date: Tue, 18 Aug 2009 06:08:01 +0000 (+0000) Subject: Include valgrind in the steps to reproduce if valgrind was used to reproduce X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=40cce094a3456800dd0588229cfee636007cf78c;p=oota-llvm.git 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 --- 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"; }