aboutsummaryrefslogtreecommitdiff
path: root/lib/ExecutionEngine/Interpreter/Interpreter.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2001-11-12 16:19:45 +0000
committerChris Lattner <sabre@nondot.org>2001-11-12 16:19:45 +0000
commite2409064715ac156ead333a039107b6e14548050 (patch)
treefc91d9633f0a66f6df09758094b596ec453dd1e2 /lib/ExecutionEngine/Interpreter/Interpreter.h
parent8486cdd3f9850eb08fceea05deb6a0315e962574 (diff)
Hack a structure profiling option together
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1267 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine/Interpreter/Interpreter.h')
-rw-r--r--lib/ExecutionEngine/Interpreter/Interpreter.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/ExecutionEngine/Interpreter/Interpreter.h b/lib/ExecutionEngine/Interpreter/Interpreter.h
index eba8ea9c32..7e1fde1e8d 100644
--- a/lib/ExecutionEngine/Interpreter/Interpreter.h
+++ b/lib/ExecutionEngine/Interpreter/Interpreter.h
@@ -7,6 +7,10 @@
#ifndef LLI_INTERPRETER_H
#define LLI_INTERPRETER_H
+// Uncomment this line to enable profiling of structure field accesses.
+#define PROFILE_STRUCTURE_FIELDS 1
+
+
#include "llvm/Module.h"
#include "llvm/Method.h"
#include "llvm/Support/DataTypes.h"
@@ -54,7 +58,6 @@ struct ExecutionContext {
// NULL if main func or debugger invoked fn
};
-
// Interpreter - This class represents the entirety of the interpreter.
//
class Interpreter {