add a new EmitIntValue method that MCStreamer impls can optionally define

and that clients can use.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93923 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner
2010-01-19 22:03:38 +00:00
parent bafbbdde38
commit 32ae3fe0ba
3 changed files with 40 additions and 6 deletions

View File

@@ -169,6 +169,10 @@ namespace llvm {
virtual void EmitValue(const MCExpr *Value, unsigned Size,
unsigned AddrSpace) = 0;
/// EmitIntValue - Special case of EmitValue that avoids the client having
/// to pass in a MCExpr for constant integers.
virtual void EmitIntValue(uint64_t Value, unsigned Size,unsigned AddrSpace);
/// EmitFill - Emit NumBytes bytes worth of the value specified by
/// FillValue. This implements directives such as '.space'.
virtual void EmitFill(uint64_t NumBytes, uint8_t FillValue,