summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ExecutionEngine/Interpreter/Interpreter.h
diff options
context:
space:
mode:
authorBrian Gaeke <gaeke@uiuc.edu>2003-09-04 22:21:24 +0000
committerBrian Gaeke <gaeke@uiuc.edu>2003-09-04 22:21:24 +0000
commite80e5ba7f8c6d0c2ea404d2c56aecfae0bb9681d (patch)
treea27dbcf913b26290964190cb4c3e9c0e482f26b2 /llvm/lib/ExecutionEngine/Interpreter/Interpreter.h
parent4bd3bd5b5aad9cb32f1cd268cfa5e8b8df0ec368 (diff)
downloadbcm5719-llvm-e80e5ba7f8c6d0c2ea404d2c56aecfae0bb9681d.tar.gz
bcm5719-llvm-e80e5ba7f8c6d0c2ea404d2c56aecfae0bb9681d.zip
Interpreter cleanups:
Get rid of support for DebugMode (make it always off). Mung some comments. Get rid of interpreter's PROFILE_STRUCTURE_FIELDS and PerformExitStuff which have been disabled forever. Get rid of -abort-on-exception (make it always on). Get rid of user interaction stuff (debug mode innards). Simplify Interpreter's callMainFunction(). llvm-svn: 8344
Diffstat (limited to 'llvm/lib/ExecutionEngine/Interpreter/Interpreter.h')
-rw-r--r--llvm/lib/ExecutionEngine/Interpreter/Interpreter.h12
1 files changed, 2 insertions, 10 deletions
diff --git a/llvm/lib/ExecutionEngine/Interpreter/Interpreter.h b/llvm/lib/ExecutionEngine/Interpreter/Interpreter.h
index 459904da6db..47f5c95f152 100644
--- a/llvm/lib/ExecutionEngine/Interpreter/Interpreter.h
+++ b/llvm/lib/ExecutionEngine/Interpreter/Interpreter.h
@@ -7,9 +7,6 @@
#ifndef LLI_INTERPRETER_H
#define LLI_INTERPRETER_H
-// Uncomment this line to enable profiling of structure field accesses.
-//#define PROFILE_STRUCTURE_FIELDS 1
-
#include "../ExecutionEngine.h"
#include "../GenericValue.h"
#include "Support/DataTypes.h"
@@ -74,7 +71,6 @@ struct ExecutionContext {
//
class Interpreter : public ExecutionEngine, public InstVisitor<Interpreter> {
int ExitCode; // The exit code to be returned by the lli util
- bool Debug; // Debug mode enabled?
bool Profile; // Profiling enabled?
bool Trace; // Tracing enabled?
int CurFrame; // The current stack frame being inspected
@@ -88,12 +84,12 @@ class Interpreter : public ExecutionEngine, public InstVisitor<Interpreter> {
std::vector<Function*> AtExitHandlers;
public:
Interpreter(Module *M, bool isLittleEndian, bool isLongPointer,
- bool DebugMode, bool TraceMode);
+ bool TraceMode);
inline ~Interpreter() { CW.setModule(0); }
/// create - Create an interpreter ExecutionEngine. This can never fail.
///
- static ExecutionEngine *create(Module *M, bool DebugMode, bool TraceMode);
+ static ExecutionEngine *create(Module *M, bool TraceMode);
/// getExitCode - return the code that should be the exit code for the lli
/// utility.
@@ -220,10 +216,6 @@ private: // Helper functions
Value *ChooseOneOption(const std::string &Name,
const std::vector<Value*> &Opts);
- // PerformExitStuff - Print out counters and profiling information if
- // applicable...
- void PerformExitStuff();
-
void initializeExecutionEngine();
void initializeExternalFunctions();
};
OpenPOWER on IntegriCloud