diff options
author | Chris Lattner <sabre@nondot.org> | 2010-01-19 22:03:38 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-01-19 22:03:38 +0000 |
commit | 32ae3fe0ba469240753e2342e36485f7c9acfb5c (patch) | |
tree | 1ed40c15964950de72685c64d2a8699bdad32c24 /include | |
parent | bafbbdde38dedf05b53b731cbc083b2c483ae64e (diff) | |
download | external_llvm-32ae3fe0ba469240753e2342e36485f7c9acfb5c.zip external_llvm-32ae3fe0ba469240753e2342e36485f7c9acfb5c.tar.gz external_llvm-32ae3fe0ba469240753e2342e36485f7c9acfb5c.tar.bz2 |
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
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/MC/MCStreamer.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/MC/MCStreamer.h b/include/llvm/MC/MCStreamer.h index be66a62..f1680a9 100644 --- a/include/llvm/MC/MCStreamer.h +++ b/include/llvm/MC/MCStreamer.h @@ -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, |