diff options
author | Chris Lattner <sabre@nondot.org> | 2002-12-04 06:04:17 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-12-04 06:04:17 +0000 |
commit | b3bbffe7fa27c01a5629263e3b8e6cd64aefbee5 (patch) | |
tree | 1b27bdb0b65a21caa9cc03ba513858f323d80648 | |
parent | 75a213dbe8286a5f358ed28312696151dad92ca7 (diff) |
Implement simple global variable support
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4903 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | tools/jello/VM.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/jello/VM.h b/tools/jello/VM.h index b25cd4625e..64451014c1 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 |