aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/MC/MCStreamer.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2018-01-09 19:29:33 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2018-01-09 19:29:33 +0000
commit8fcd07d53cb678fc6f1c203e61dc302774bb9761 (patch)
treed5c95f9de8cd3d6fd4e83d486dcc4653d41f9b15 /llvm/lib/MC/MCStreamer.cpp
parentf3c832a9700207754d56cc1d041f6ad2290f8d1c (diff)
downloadllvm-8fcd07d53cb678fc6f1c203e61dc302774bb9761.zip
llvm-8fcd07d53cb678fc6f1c203e61dc302774bb9761.tar.gz
llvm-8fcd07d53cb678fc6f1c203e61dc302774bb9761.tar.bz2
Make one of the emitFill methods non virtual. NFC.
This is just preparatory work to fix PR35858. llvm-svn: 322108
Diffstat (limited to 'llvm/lib/MC/MCStreamer.cpp')
-rw-r--r--llvm/lib/MC/MCStreamer.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/MC/MCStreamer.cpp b/llvm/lib/MC/MCStreamer.cpp
index 6e801ed..ed10ccb 100644
--- a/llvm/lib/MC/MCStreamer.cpp
+++ b/llvm/lib/MC/MCStreamer.cpp
@@ -184,8 +184,7 @@ void MCStreamer::EmitGPRel32Value(const MCExpr *Value) {
/// Emit NumBytes bytes worth of the value specified by FillValue.
/// This implements directives such as '.space'.
void MCStreamer::emitFill(uint64_t NumBytes, uint8_t FillValue) {
- for (uint64_t i = 0, e = NumBytes; i != e; ++i)
- EmitIntValue(FillValue, 1);
+ emitFill(*MCConstantExpr::create(NumBytes, getContext()), FillValue);
}
void MCStreamer::emitFill(uint64_t NumValues, int64_t Size, int64_t Expr) {