Include valgrind in the steps to reproduce if valgrind was used to reproduce
authorNick Lewycky <nicholas@mxc.ca>
Tue, 18 Aug 2009 06:08:01 +0000 (06:08 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Tue, 18 Aug 2009 06:08:01 +0000 (06:08 +0000)
the problem.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79322 91177308-0d34-0410-b5e6-96231b3b80d8

tools/bugpoint/OptimizerDriver.cpp

index b38d8cfe836fa898efbd45b89c39de2768fecc62..257647f08f988e4b5ef0f4d12ec5fbdeceb5b826 100644 (file)
@@ -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";
 }