mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-23 06:35:25 +00:00
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
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user