From b3bbffe7fa27c01a5629263e3b8e6cd64aefbee5 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 4 Dec 2002 06:04:17 +0000 Subject: [PATCH] Implement simple global variable support git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4903 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/jello/VM.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 -- 2.34.1