Implement simple global variable support
authorChris Lattner <sabre@nondot.org>
Wed, 4 Dec 2002 06:04:17 +0000 (06:04 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 4 Dec 2002 06:04:17 +0000 (06:04 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4903 91177308-0d34-0410-b5e6-96231b3b80d8

tools/jello/VM.h

index b25cd4625e482c8ca247820cdcda99b78dab613f..64451014c1690a571ee4238f2990becb4f9c4a8d 100644 (file)
 #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