summaryrefslogtreecommitdiffstats
path: root/lib/ExecutionEngine/Interpreter/Interpreter.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2001-10-27 08:43:52 +0000
committerChris Lattner <sabre@nondot.org>2001-10-27 08:43:52 +0000
commit43e3f7c9627d0793a31a9457d3bbbe4d8d56d331 (patch)
tree16cf7181c3a2e5e66765516273e7accb232ed444 /lib/ExecutionEngine/Interpreter/Interpreter.h
parentc25931673092b1dae646aeeac1d18f75d9640ec7 (diff)
downloadexternal_llvm-43e3f7c9627d0793a31a9457d3bbbe4d8d56d331.zip
external_llvm-43e3f7c9627d0793a31a9457d3bbbe4d8d56d331.tar.gz
external_llvm-43e3f7c9627d0793a31a9457d3bbbe4d8d56d331.tar.bz2
Implement a -trace command line option and a trace option in the interpreter.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@989 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine/Interpreter/Interpreter.h')
-rw-r--r--lib/ExecutionEngine/Interpreter/Interpreter.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/ExecutionEngine/Interpreter/Interpreter.h b/lib/ExecutionEngine/Interpreter/Interpreter.h
index 16cc569..2d262ae 100644
--- a/lib/ExecutionEngine/Interpreter/Interpreter.h
+++ b/lib/ExecutionEngine/Interpreter/Interpreter.h
@@ -56,6 +56,7 @@ class Interpreter {
Module *CurMod; // The current Module being executed (0 if none)
int ExitCode; // The exit code to be returned by the lli util
bool Profile; // Profiling enabled?
+ bool Trace; // Tracing enabled?
int CurFrame; // The current stack frame being inspected
// The runtime stack of executing code. The top of the stack is the current
@@ -72,6 +73,7 @@ public:
// enableProfiling() - Turn profiling on, clear stats?
void enableProfiling() { Profile = true; }
+ void enableTracing() { Trace = true; }
void initializeExecutionEngine();
void handleUserInput();