From: Chris Lattner Date: Wed, 4 Dec 2002 06:04:17 +0000 (+0000) Subject: Implement simple global variable support X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=b3bbffe7fa27c01a5629263e3b8e6cd64aefbee5;p=oota-llvm.git Implement simple global variable support git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4903 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/tools/jello/VM.h b/tools/jello/VM.h index b25cd4625e4..64451014c16 100644 --- a/tools/jello/VM.h +++ b/tools/jello/VM.h @@ -12,9 +12,10 @@ #include #include -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