summaryrefslogtreecommitdiff
path: root/tools/bugpoint/BugDriver.h
diff options
context:
space:
mode:
authorMisha Brukman <brukman+llvm@gmail.com>2003-07-24 21:59:10 +0000
committerMisha Brukman <brukman+llvm@gmail.com>2003-07-24 21:59:10 +0000
commita259c9be2acc9528ec7feb3cfd51dcde36d87bb3 (patch)
tree33c64624d3bad1ab79d47720ca9e7d66f3f91332 /tools/bugpoint/BugDriver.h
parent4166445b7cde22f81cd1a18b6f33fe94b94bdbb6 (diff)
downloadllvm-a259c9be2acc9528ec7feb3cfd51dcde36d87bb3.tar.gz
llvm-a259c9be2acc9528ec7feb3cfd51dcde36d87bb3.tar.bz2
llvm-a259c9be2acc9528ec7feb3cfd51dcde36d87bb3.tar.xz
Made a bunch of cleanups, as per Chris' recommendations:
* Removed unused global and member variables * Fixed comments (CodeGeneratorBug.cpp) * Check for possibly failing GCC::create() and CBE::create() * Remove generated files after diffing the output (e.g., shared object) * Instead of using std::for_each, use explicit loops as std::for_each may duplicate the functor, and ours carries state * Changed member var from cl::opt<std::string> to just std::string * Fixed doxygen comments * Fixed string comparisons to use [ str.empty() ] instead of [ str == "" ] * Cache instances of CBE and GCC in BugDriver across compilations and executions while testing tools. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7302 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/bugpoint/BugDriver.h')
-rw-r--r--tools/bugpoint/BugDriver.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/tools/bugpoint/BugDriver.h b/tools/bugpoint/BugDriver.h
index 0c461d1e17..0eb6188bee 100644
--- a/tools/bugpoint/BugDriver.h
+++ b/tools/bugpoint/BugDriver.h
@@ -9,7 +9,6 @@
#ifndef BUGDRIVER_H
#define BUGDRIVER_H
-#include "Support/CommandLine.h"
#include <vector>
#include <string>
@@ -25,12 +24,17 @@ class ReduceMiscompilingFunctions;
class ReduceCrashingFunctions;
class ReduceCrashingBlocks;
+class CBE;
+class GCC;
+
class BugDriver {
const std::string ToolName; // Name of bugpoint
- cl::opt<std::string> ReferenceOutputFile; // Name of `good' output file
+ std::string ReferenceOutputFile; // Name of `good' output file
Module *Program; // The raw program, linked together
std::vector<const PassInfo*> PassesToRun;
AbstractInterpreter *Interpreter; // How to run the program
+ CBE *cbe;
+ GCC *gcc;
// FIXME: sort out public/private distinctions...
friend class DebugCrashes;
@@ -128,6 +132,7 @@ private:
}
/// PrintFunctionList - prints out list of problematic functions
+ ///
static void PrintFunctionList(const std::vector<Function*> &Funcs);
/// deleteInstructionFromProgram - This method clones the current Program and