summaryrefslogtreecommitdiff
path: root/tools/bugpoint/BugDriver.cpp
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.cpp
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.cpp')
-rw-r--r--tools/bugpoint/BugDriver.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/bugpoint/BugDriver.cpp b/tools/bugpoint/BugDriver.cpp
index 53a8395aaf..f69feabfff 100644
--- a/tools/bugpoint/BugDriver.cpp
+++ b/tools/bugpoint/BugDriver.cpp
@@ -66,7 +66,7 @@ void DeleteFunctionBody(Function *F) {
BugDriver::BugDriver(const char *toolname)
: ToolName(toolname), ReferenceOutputFile(OutputFile),
- Program(0), Interpreter(0) {}
+ Program(0), Interpreter(0), cbe(0), gcc(0) {}
/// ParseInputFile - Given a bytecode or assembly input filename, parse and