diff options
author | Petr Hosek <phosek@chromium.org> | 2016-06-01 01:59:58 +0000 |
---|---|---|
committer | Petr Hosek <phosek@chromium.org> | 2016-06-01 01:59:58 +0000 |
commit | ac42e994d07237ed6af9afca05b36d15caa6d56c (patch) | |
tree | 64dcdd7d73e1dcecbd1e0391d4e59ac624d0f433 /lib/MC | |
parent | d8d85ac3c91f057a694a9f0630c565102e60bd2d (diff) | |
download | llvm-ac42e994d07237ed6af9afca05b36d15caa6d56c.tar.gz |
[MC] Rename EmitFill to emitFill
This is to match the overloaded variants as well as the new style.
Differential Revision: http://reviews.llvm.org/D20690
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@271359 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC')
-rw-r--r-- | lib/MC/MCAsmStreamer.cpp | 6 | ||||
-rw-r--r-- | lib/MC/MCDwarf.cpp | 2 | ||||
-rw-r--r-- | lib/MC/MCObjectStreamer.cpp | 4 | ||||
-rw-r--r-- | lib/MC/MCStreamer.cpp | 10 |
4 files changed, 11 insertions, 11 deletions
diff --git a/lib/MC/MCAsmStreamer.cpp b/lib/MC/MCAsmStreamer.cpp index c85ffd5182dc..4c90c1414520 100644 --- a/lib/MC/MCAsmStreamer.cpp +++ b/lib/MC/MCAsmStreamer.cpp @@ -179,7 +179,7 @@ public: void EmitGPRel32Value(const MCExpr *Value) override; - void EmitFill(uint64_t NumBytes, uint8_t FillValue) override; + void emitFill(uint64_t NumBytes, uint8_t FillValue) override; void emitFill(const MCExpr &NumBytes, uint64_t FillValue, SMLoc Loc = SMLoc()) override; @@ -819,9 +819,9 @@ void MCAsmStreamer::EmitGPRel32Value(const MCExpr *Value) { EmitEOL(); } -/// EmitFill - Emit NumBytes bytes worth of the value specified by +/// emitFill - Emit NumBytes bytes worth of the value specified by /// FillValue. This implements directives such as '.space'. -void MCAsmStreamer::EmitFill(uint64_t NumBytes, uint8_t FillValue) { +void MCAsmStreamer::emitFill(uint64_t NumBytes, uint8_t FillValue) { if (NumBytes == 0) return; const MCExpr *E = MCConstantExpr::create(NumBytes, getContext()); diff --git a/lib/MC/MCDwarf.cpp b/lib/MC/MCDwarf.cpp index 4ab5ade8b8f8..47f002f619b4 100644 --- a/lib/MC/MCDwarf.cpp +++ b/lib/MC/MCDwarf.cpp @@ -820,7 +820,7 @@ static void EmitGenDwarfRanges(MCStreamer *MCOS) { // Emit a base address selection entry for the start of this section const MCExpr *SectionStartAddr = MCSymbolRefExpr::create( StartSymbol, MCSymbolRefExpr::VK_None, context); - MCOS->EmitFill(AddrSize, 0xFF); + MCOS->emitFill(AddrSize, 0xFF); MCOS->EmitValue(SectionStartAddr, AddrSize); // Emit a range list entry spanning this section diff --git a/lib/MC/MCObjectStreamer.cpp b/lib/MC/MCObjectStreamer.cpp index bf7d0f241c0d..053579847810 100644 --- a/lib/MC/MCObjectStreamer.cpp +++ b/lib/MC/MCObjectStreamer.cpp @@ -490,7 +490,7 @@ bool MCObjectStreamer::EmitRelocDirective(const MCExpr &Offset, StringRef Name, return false; } -void MCObjectStreamer::EmitFill(uint64_t NumBytes, uint8_t FillValue) { +void MCObjectStreamer::emitFill(uint64_t NumBytes, uint8_t FillValue) { const MCSection *Sec = getCurrentSection().first; (void)Sec; assert(Sec && "need a section"); @@ -513,7 +513,7 @@ void MCObjectStreamer::emitFill(const MCExpr &NumBytes, uint64_t FillValue, return; } - EmitFill(IntNumBytes, FillValue); + emitFill(IntNumBytes, FillValue); } void MCObjectStreamer::emitFill(const MCExpr &NumValues, int64_t Size, diff --git a/lib/MC/MCStreamer.cpp b/lib/MC/MCStreamer.cpp index 8872d321d88e..c3dee8f927f7 100644 --- a/lib/MC/MCStreamer.cpp +++ b/lib/MC/MCStreamer.cpp @@ -132,9 +132,9 @@ void MCStreamer::EmitGPRel32Value(const MCExpr *Value) { report_fatal_error("unsupported directive in streamer"); } -/// EmitFill - 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) { +/// 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); } @@ -149,9 +149,9 @@ void MCStreamer::emitFill(uint64_t NumValues, int64_t Size, int64_t Expr) { } } -/// The implementation in this class just redirects to EmitFill. +/// The implementation in this class just redirects to emitFill. void MCStreamer::EmitZeros(uint64_t NumBytes) { - EmitFill(NumBytes, 0); + emitFill(NumBytes, 0); } unsigned MCStreamer::EmitDwarfFileDirective(unsigned FileNo, |