aboutsummaryrefslogtreecommitdiffstats
path: root/tools/jello/VM.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/jello/VM.h')
-rw-r--r--tools/jello/VM.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/jello/VM.h b/tools/jello/VM.h
index b25cd46..6445101 100644
--- a/tools/jello/VM.h
+++ b/tools/jello/VM.h
@@ -12,9 +12,10 @@
#include <map>
#include <vector>
-class TargetMachine;
class Function;
class GlobalValue;
+class Constant;
+class TargetMachine;
class MachineCodeEmitter;
class VM {
@@ -39,6 +40,7 @@ public:
MCE = createEmitter(*this); // Initialize MCE
setupPassManager();
registerCallback();
+ emitGlobals();
}
~VM();
@@ -64,6 +66,8 @@ private:
void setupPassManager();
void *getPointerToFunction(Function *F);
void registerCallback();
+ void emitGlobals();
+ void emitConstantToMemory(Constant *Init, void *Addr);
};
#endif