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 | ddf6bdde44287b5b559bc403a02ff971e15e8303 (patch) | |
tree | bc3558e6741c70092f9a71a601123180bfa0cba5 /tools/llvm-mc/AsmParser.cpp | |
parent | f03ffd13f8f31fb8ead74b94eb2ef71b80ac7739 (diff) |
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 'tools/llvm-mc/AsmParser.cpp')
-rw-r--r-- | tools/llvm-mc/AsmParser.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/llvm-mc/AsmParser.cpp b/tools/llvm-mc/AsmParser.cpp index 0e7c3443d5..3a57953e65 100644 --- a/tools/llvm-mc/AsmParser.cpp +++ b/tools/llvm-mc/AsmParser.cpp @@ -1041,8 +1041,7 @@ bool AsmParser::ParseDirectiveSpace() { return TokError("invalid number of bytes in '.space' directive"); // FIXME: Sometimes the fill expr is 'nop' if it isn't supplied, instead of 0. - for (uint64_t i = 0, e = NumBytes; i != e; ++i) - Out.EmitValue(MCConstantExpr::Create(FillExpr, getContext()), 1); + Out.EmitFill(NumBytes, FillExpr); return false; } |