diff options
author | Chris Lattner <sabre@nondot.org> | 2004-04-05 22:58:16 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-04-05 22:58:16 +0000 |
commit | a57d86b436549503a7f96c5266444e022bdbaf55 (patch) | |
tree | 3c12d8f5aae9aa197c07c1ebf3c12b7c5e6843e8 /tools/bugpoint/BugDriver.h | |
parent | 11b8cd197a740bc9af2f27cb88d535c4be2cdd0e (diff) |
Merge the code generator miscompilation code into the optimizer miscompilation
code. This "instantly" gives us loop-extractor power to assist with the
debugment of our nasty codegen issues. :)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12678 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/bugpoint/BugDriver.h')
-rw-r--r-- | tools/bugpoint/BugDriver.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/bugpoint/BugDriver.h b/tools/bugpoint/BugDriver.h index d54ec57677..92fdb7c0a1 100644 --- a/tools/bugpoint/BugDriver.h +++ b/tools/bugpoint/BugDriver.h @@ -129,6 +129,16 @@ public: return OldProgram; } + AbstractInterpreter *switchToCBE() { + AbstractInterpreter *Old = Interpreter; + Interpreter = (AbstractInterpreter*)cbe; + return Old; + } + + void switchToInterpreter(AbstractInterpreter *AI) { + Interpreter = AI; + } + /// setNewProgram - If we reduce or update the program somehow, call this /// method to update bugdriver with it. This deletes the old module and sets /// the specified one as the current program. |