diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-09-07 19:26:11 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-09-07 19:26:11 +0000 |
commit | 68ccdaa84909108c42417a8091c771598e26456e (patch) | |
tree | adac575e8da48fbf52512ad9079cba7580225a24 /tools/bugpoint/Miscompilation.cpp | |
parent | 59e8efdd5938172e4907afc60d45dbd9cd67c6e1 (diff) | |
download | external_llvm-68ccdaa84909108c42417a8091c771598e26456e.zip external_llvm-68ccdaa84909108c42417a8091c771598e26456e.tar.gz external_llvm-68ccdaa84909108c42417a8091c771598e26456e.tar.bz2 |
Add -output-prefix option to bugpoint (to change the default output name).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81154 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/bugpoint/Miscompilation.cpp')
-rw-r--r-- | tools/bugpoint/Miscompilation.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/tools/bugpoint/Miscompilation.cpp b/tools/bugpoint/Miscompilation.cpp index 57a4fc7..e1aeaf8 100644 --- a/tools/bugpoint/Miscompilation.cpp +++ b/tools/bugpoint/Miscompilation.cpp @@ -30,6 +30,7 @@ using namespace llvm; namespace llvm { + extern cl::opt<std::string> OutputPrefix; extern cl::list<std::string> InputArgv; } @@ -301,12 +302,15 @@ static bool ExtractLoops(BugDriver &BD, << " Please report a bug!\n"; errs() << " Continuing on with un-loop-extracted version.\n"; - BD.writeProgramToFile("bugpoint-loop-extract-fail-tno.bc", ToNotOptimize); - BD.writeProgramToFile("bugpoint-loop-extract-fail-to.bc", ToOptimize); - BD.writeProgramToFile("bugpoint-loop-extract-fail-to-le.bc", + BD.writeProgramToFile(OutputPrefix + "-loop-extract-fail-tno.bc", + ToNotOptimize); + BD.writeProgramToFile(OutputPrefix + "-loop-extract-fail-to.bc", + ToOptimize); + BD.writeProgramToFile(OutputPrefix + "-loop-extract-fail-to-le.bc", ToOptimizeLoopExtracted); - errs() << "Please submit the bugpoint-loop-extract-fail-*.bc files.\n"; + errs() << "Please submit the " + << OutputPrefix << "-loop-extract-fail-*.bc files.\n"; delete ToOptimize; delete ToNotOptimize; delete ToOptimizeLoopExtracted; |