mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-07 11:08:46 +00:00
Implement simple global variable support
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4903 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
75a213dbe8
commit
b3bbffe7fa
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user