aboutsummaryrefslogtreecommitdiffstats
path: root/tools
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
parent090d73c6bdbaff15a3e1f8e9870ea1e60e01f3f6 (diff)
downloadexternal_llvm-40cce094a3456800dd0588229cfee636007cf78c.zip
external_llvm-40cce094a3456800dd0588229cfee636007cf78c.tar.gz
external_llvm-40cce094a3456800dd0588229cfee636007cf78c.tar.bz2
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')
-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 b38d8cf..257647f 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";
}