diff options
| author | Chris Lattner <sabre@nondot.org> | 2004-02-18 20:52:02 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2004-02-18 20:52:02 +0000 |
| commit | 7bb11547e497d7b8fc87f61c1089eee808e3a1ee (patch) | |
| tree | df871c6ac4f5465cbe3be0d994aa8da16e78f0e2 /tools/bugpoint/ExecutionDriver.cpp | |
| parent | c8580b2aee8e0a93eb7dd2d70c81ccb33e447538 (diff) | |
Update comments, if we are running with the CBE, make sure the Interpreter
variable and the CBE variable are pointer equal.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11599 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/bugpoint/ExecutionDriver.cpp')
| -rw-r--r-- | tools/bugpoint/ExecutionDriver.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/tools/bugpoint/ExecutionDriver.cpp b/tools/bugpoint/ExecutionDriver.cpp index 9dc9adf804..ecf9dc8a58 100644 --- a/tools/bugpoint/ExecutionDriver.cpp +++ b/tools/bugpoint/ExecutionDriver.cpp @@ -84,11 +84,12 @@ bool BugDriver::initializeExecutionEnvironment() { // Create an instance of the AbstractInterpreter interface as specified on // the command line + cbe = 0; std::string Message; switch (InterpreterSel) { case AutoPick: InterpreterSel = RunCBE; - Interpreter = AbstractInterpreter::createCBE(getToolName(), Message); + Interpreter = cbe = AbstractInterpreter::createCBE(getToolName(), Message); if (!Interpreter) { InterpreterSel = RunJIT; Interpreter = AbstractInterpreter::createJIT(getToolName(), Message); @@ -116,7 +117,7 @@ bool BugDriver::initializeExecutionEnvironment() { Interpreter = AbstractInterpreter::createJIT(getToolName(), Message); break; case RunCBE: - Interpreter = AbstractInterpreter::createCBE(getToolName(), Message); + Interpreter = cbe = AbstractInterpreter::createCBE(getToolName(), Message); break; default: Message = "Sorry, this back-end is not supported by bugpoint right now!\n"; @@ -125,8 +126,10 @@ bool BugDriver::initializeExecutionEnvironment() { std::cerr << Message; // Initialize auxiliary tools for debugging - cbe = AbstractInterpreter::createCBE(getToolName(), Message); - if (!cbe) { std::cout << Message << "\nExiting.\n"; exit(1); } + if (!cbe) { + cbe = AbstractInterpreter::createCBE(getToolName(), Message); + if (!cbe) { std::cout << Message << "\nExiting.\n"; exit(1); } + } gcc = GCC::create(getToolName(), Message); if (!gcc) { std::cout << Message << "\nExiting.\n"; exit(1); } |
