summaryrefslogtreecommitdiff
path: root/tools/bugpoint/BugDriver.h
diff options
context:
space:
mode:
authorMisha Brukman <brukman+llvm@gmail.com>2003-07-28 19:16:14 +0000
committerMisha Brukman <brukman+llvm@gmail.com>2003-07-28 19:16:14 +0000
commit91eabc13d3a456cc4b387d3d7fdb041d976732c7 (patch)
tree37bbf006f43e2c10ef859c2d2d7b3204ee5df0ac /tools/bugpoint/BugDriver.h
parentd69c1e6dc28bed3c156f78fee5253748e3d509e2 (diff)
downloadllvm-91eabc13d3a456cc4b387d3d7fdb041d976732c7.tar.gz
llvm-91eabc13d3a456cc4b387d3d7fdb041d976732c7.tar.bz2
llvm-91eabc13d3a456cc4b387d3d7fdb041d976732c7.tar.xz
BugDriver.h:
* Added method to query if BugDriver is executing the JIT currently. This provides the ability in adding code that is conditionally executed in codegen debugging phase. CodeGeneratorBug.cpp: * Delete test functions from the Safe module * Code conditionally added when debugging the JIT: use the lazy resolver function added to Emitter.cpp to get function pointer by name. When compiled into an .so, this is the only way to get a pointer to an external function * Added a symbol disambiguator which will keep symbols uniquely named across modules * Delete generated files by default * The function `main' *must* stay in the .bc file for the JIT, but that prevents debugging it alone. This patch makes the old `main' become `old_main' and adds a new function named `main' which just calls the original with the same parameters, thereby keeping functionality the same. ExecutionDriver.cpp: * Returned to getting unique filenames * Simplified code choosing between using and not using shared library option git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7364 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/bugpoint/BugDriver.h')
-rw-r--r--tools/bugpoint/BugDriver.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/bugpoint/BugDriver.h b/tools/bugpoint/BugDriver.h
index 0eb6188bee..cf2ae58fcd 100644
--- a/tools/bugpoint/BugDriver.h
+++ b/tools/bugpoint/BugDriver.h
@@ -81,7 +81,6 @@ public:
bool debugPassMiscompilation(const PassInfo *ThePass,
const std::string &ReferenceOutput);
-
/// compileSharedObject - This method creates a SharedObject from a given
/// BytecodeFile for debugging a code generator.
int compileSharedObject(const std::string &BytecodeFile,
@@ -92,6 +91,8 @@ public:
/// functions that are not under consideration.
bool debugCodeGenerator();
+ bool isExecutingJIT();
+
private:
/// ParseInputFile - Given a bytecode or assembly input filename, parse and
/// return it, or return null if not possible.