Cleanup #includes, expose module
authorChris Lattner <sabre@nondot.org>
Wed, 2 Oct 2002 21:11:16 +0000 (21:11 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 2 Oct 2002 21:11:16 +0000 (21:11 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4021 91177308-0d34-0410-b5e6-96231b3b80d8

lib/ExecutionEngine/Interpreter/Interpreter.h

index 3ead31a3031a05128a55a8c4fa5b05a37da61c3c..3573d17fb4b3ce3fc04a55cea408bed5679f8a48 100644 (file)
@@ -8,12 +8,9 @@
 #define LLI_INTERPRETER_H
 
 // Uncomment this line to enable profiling of structure field accesses.
-#define PROFILE_STRUCTURE_FIELDS 1
-
+//#define PROFILE_STRUCTURE_FIELDS 1
 
 #include "llvm/Module.h"
-#include "llvm/Function.h"
-#include "llvm/BasicBlock.h"
 #include "Support/DataTypes.h"
 #include "llvm/Assembly/CachedWriter.h"
 
@@ -110,6 +107,7 @@ public:
   // getExitCode - return the code that should be the exit code for the lli
   // utility.
   inline int getExitCode() const { return ExitCode; }
+  inline Module *getModule() const { return CurMod; }
 
   // enableProfiling() - Turn profiling on, clear stats?
   void enableProfiling() { Profile = true; }