mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-25 04:55:50 +00:00
Implement emitWordAt() for the JIT emitter.
llvm-svn: 13118
This commit is contained in:
parent
bc25b3b28a
commit
3cde72d6e2
@ -150,6 +150,7 @@ namespace {
|
||||
virtual void* finishFunctionStub(const Function &F);
|
||||
virtual void emitByte(unsigned char B);
|
||||
virtual void emitWord(unsigned W);
|
||||
virtual void emitWordAt(unsigned W, unsigned *Ptr);
|
||||
|
||||
virtual uint64_t getGlobalValueAddress(GlobalValue *V);
|
||||
virtual uint64_t getGlobalValueAddress(const std::string &Name);
|
||||
@ -244,6 +245,10 @@ void Emitter::emitWord(unsigned W) {
|
||||
CurByte += sizeof(unsigned);
|
||||
}
|
||||
|
||||
void Emitter::emitWordAt(unsigned W, unsigned *Ptr) {
|
||||
*Ptr = W;
|
||||
}
|
||||
|
||||
uint64_t Emitter::getGlobalValueAddress(GlobalValue *V) {
|
||||
// Try looking up the function to see if it is already compiled, if not return
|
||||
// 0.
|
||||
|
Loading…
Reference in New Issue
Block a user