forked from OSchip/llvm-project
parent
1813cb90e8
commit
418b77ef4b
|
@ -13,6 +13,7 @@
|
|||
class MachineFunction;
|
||||
class MachineBasicBlock;
|
||||
class Value;
|
||||
class GlobalValue;
|
||||
|
||||
struct MachineCodeEmitter {
|
||||
virtual ~MachineCodeEmitter() {}
|
||||
|
@ -43,6 +44,12 @@ struct MachineCodeEmitter {
|
|||
///
|
||||
virtual void emitPCRelativeDisp(Value *V) {}
|
||||
|
||||
/// emitGlobalAddress - This callback is invoked when we need to write out the
|
||||
/// address of a global value to machine code. This is important for indirect
|
||||
/// calls as well as accessing global variables.
|
||||
///
|
||||
virtual void emitGlobalAddress(GlobalValue *V) {}
|
||||
|
||||
|
||||
/// createDebugMachineCodeEmitter - Return a dynamically allocated machine
|
||||
/// code emitter, which just prints the opcodes and fields out the cout. This
|
||||
|
|
Loading…
Reference in New Issue