diff options
author | Chris Lattner <sabre@nondot.org> | 2002-12-02 21:56:28 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-12-02 21:56:28 +0000 |
commit | 8562d4ec7ce4719df7e106a3d27e4549e2cc8054 (patch) | |
tree | 2918b9aed7d9574044f225859f866d345d3b4500 /include/llvm/CodeGen/MachineCodeEmitter.h | |
parent | 8f04b0981fd8cd54ab89348cd8f29ac230816854 (diff) |
More support
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4873 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/MachineCodeEmitter.h')
-rw-r--r-- | include/llvm/CodeGen/MachineCodeEmitter.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/MachineCodeEmitter.h b/include/llvm/CodeGen/MachineCodeEmitter.h index 69eea5c972..cddadb2661 100644 --- a/include/llvm/CodeGen/MachineCodeEmitter.h +++ b/include/llvm/CodeGen/MachineCodeEmitter.h @@ -12,6 +12,7 @@ class MachineFunction; class MachineBasicBlock; +class Value; struct MachineCodeEmitter { @@ -32,7 +33,14 @@ struct MachineCodeEmitter { /// emitByte - This callback is invoked when a byte needs to be written to the /// output stream. + /// virtual void emitByte(unsigned char B) {} + + /// emitPCRelativeDisp - This callback is invoked when we need to write out a + /// PC relative displacement for the specified Value*. This is used for call + /// and jump instructions typically. + /// + virtual void emitPCRelativeDisp(Value *V) {} }; #endif |