[llvm-commits] CVS: llvm/tools/jello/VM.h

Chris Lattner lattner at cs.uiuc.edu
Wed Dec 4 00:05:08 PST 2002


Changes in directory llvm/tools/jello:

VM.h updated: 1.2 -> 1.3

---
Log message:

Implement simple global variable support


---
Diffs of the changes:

Index: llvm/tools/jello/VM.h
diff -u llvm/tools/jello/VM.h:1.2 llvm/tools/jello/VM.h:1.3
--- llvm/tools/jello/VM.h:1.2	Tue Dec  3 22:47:34 2002
+++ llvm/tools/jello/VM.h	Wed Dec  4 00:04:17 2002
@@ -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 @@
     MCE = createEmitter(*this);  // Initialize MCE
     setupPassManager();
     registerCallback();
+    emitGlobals();
   }
 
   ~VM();
@@ -64,6 +66,8 @@
   void setupPassManager();
   void *getPointerToFunction(Function *F);
   void registerCallback();
+  void emitGlobals();
+  void emitConstantToMemory(Constant *Init, void *Addr);
 };
 
 #endif





More information about the llvm-commits mailing list