diff options
author | Chris Lattner <sabre@nondot.org> | 2010-01-19 18:45:47 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-01-19 18:45:47 +0000 |
commit | f0e856be0eaf521322f76254804a32c261ae19a5 (patch) | |
tree | bc3558e6741c70092f9a71a601123180bfa0cba5 /include/llvm/MC/MCStreamer.h | |
parent | d551a916083e26fa64aa2bf7b50d13669ff7c004 (diff) | |
download | external_llvm-f0e856be0eaf521322f76254804a32c261ae19a5.zip external_llvm-f0e856be0eaf521322f76254804a32c261ae19a5.tar.gz external_llvm-f0e856be0eaf521322f76254804a32c261ae19a5.tar.bz2 |
add a "MCStreamer::EmitFill" method, and move the default implementation
(which just iteratively emits bytes) to MCStreamer.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93888 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/MC/MCStreamer.h')
-rw-r--r-- | include/llvm/MC/MCStreamer.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/MC/MCStreamer.h b/include/llvm/MC/MCStreamer.h index 5febed7..6e655a5 100644 --- a/include/llvm/MC/MCStreamer.h +++ b/include/llvm/MC/MCStreamer.h @@ -168,6 +168,11 @@ namespace llvm { /// match a native machine width. virtual void EmitValue(const MCExpr *Value, unsigned Size) = 0; + /// 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 = 0); + + /// EmitValueToAlignment - Emit some number of copies of @param Value until /// the byte alignment @param ByteAlignment is reached. /// |