From a259c9be2acc9528ec7feb3cfd51dcde36d87bb3 Mon Sep 17 00:00:00 2001 From: Misha Brukman Date: Thu, 24 Jul 2003 21:59:10 +0000 Subject: 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 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 --- tools/bugpoint/BugDriver.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/bugpoint/BugDriver.cpp') 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 -- cgit v1.2.3-70-g09d2