summaryrefslogtreecommitdiff
path: root/tools/bugpoint/OptimizerDriver.cpp
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2009-08-18 06:08:01 +0000
committerNick Lewycky <nicholas@mxc.ca>2009-08-18 06:08:01 +0000
commit40cce094a3456800dd0588229cfee636007cf78c (patch)
tree8b3793f62419bd3fea0aa4730c03757c24a2f4bc /tools/bugpoint/OptimizerDriver.cpp
parent090d73c6bdbaff15a3e1f8e9870ea1e60e01f3f6 (diff)
downloadllvm-40cce094a3456800dd0588229cfee636007cf78c.tar.gz
llvm-40cce094a3456800dd0588229cfee636007cf78c.tar.bz2
llvm-40cce094a3456800dd0588229cfee636007cf78c.tar.xz
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
Diffstat (limited to 'tools/bugpoint/OptimizerDriver.cpp')
-rw-r--r--tools/bugpoint/OptimizerDriver.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/bugpoint/OptimizerDriver.cpp b/tools/bugpoint/OptimizerDriver.cpp
index b38d8cfe83..257647f08f 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";
}