[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
This commit is contained in:
Petr Hosek 2016-06-01 01:59:58 +00:00
parent d8d85ac3c9
commit ac42e994d0
9 changed files with 17 additions and 17 deletions

View File

@ -140,7 +140,7 @@ public:
void EmitGPRel64Value(const MCExpr *Value) override; void EmitGPRel64Value(const MCExpr *Value) override;
bool EmitRelocDirective(const MCExpr &Offset, StringRef Name, bool EmitRelocDirective(const MCExpr &Offset, StringRef Name,
const MCExpr *Expr, SMLoc Loc) override; const MCExpr *Expr, SMLoc Loc) 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, void emitFill(const MCExpr &NumBytes, uint64_t FillValue,
SMLoc Loc = SMLoc()) override; SMLoc Loc = SMLoc()) override;
void emitFill(const MCExpr &NumValues, int64_t Size, int64_t Expr, void emitFill(const MCExpr &NumValues, int64_t Size, int64_t Expr,

View File

@ -579,7 +579,7 @@ public:
/// \brief Emit NumBytes bytes worth of the value specified by FillValue. /// \brief Emit NumBytes bytes worth of the value specified by FillValue.
/// This implements directives such as '.space'. /// This implements directives such as '.space'.
virtual void EmitFill(uint64_t NumBytes, uint8_t FillValue); virtual void emitFill(uint64_t NumBytes, uint8_t FillValue);
/// \brief Emit \p Size bytes worth of the value specified by \p FillValue. /// \brief Emit \p Size bytes worth of the value specified by \p FillValue.
/// ///

View File

@ -1955,7 +1955,7 @@ static void emitGlobalConstantDataSequential(const DataLayout &DL,
uint64_t Bytes = DL.getTypeAllocSize(CDS->getType()); uint64_t Bytes = DL.getTypeAllocSize(CDS->getType());
// Don't emit a 1-byte object as a .fill. // Don't emit a 1-byte object as a .fill.
if (Bytes > 1) if (Bytes > 1)
return AP.OutStreamer->EmitFill(Bytes, Value); return AP.OutStreamer->emitFill(Bytes, Value);
} }
// If this can be emitted with .ascii/.asciz, emit it as such. // If this can be emitted with .ascii/.asciz, emit it as such.
@ -1994,7 +1994,7 @@ static void emitGlobalConstantArray(const DataLayout &DL,
if (Value != -1) { if (Value != -1) {
uint64_t Bytes = DL.getTypeAllocSize(CA->getType()); uint64_t Bytes = DL.getTypeAllocSize(CA->getType());
AP.OutStreamer->EmitFill(Bytes, Value); AP.OutStreamer->emitFill(Bytes, Value);
} }
else { else {
for (unsigned i = 0, e = CA->getNumOperands(); i != e; ++i) { for (unsigned i = 0, e = CA->getNumOperands(); i != e; ++i) {

View File

@ -1666,7 +1666,7 @@ void DwarfDebug::emitDebugARanges() {
Asm->OutStreamer->AddComment("Segment Size (in bytes)"); Asm->OutStreamer->AddComment("Segment Size (in bytes)");
Asm->EmitInt8(0); Asm->EmitInt8(0);
Asm->OutStreamer->EmitFill(Padding, 0xff); Asm->OutStreamer->emitFill(Padding, 0xff);
for (const ArangeSpan &Span : List) { for (const ArangeSpan &Span : List) {
Asm->EmitLabelReference(Span.Start, PtrSize); Asm->EmitLabelReference(Span.Start, PtrSize);

View File

@ -179,7 +179,7 @@ public:
void EmitGPRel32Value(const MCExpr *Value) override; 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, void emitFill(const MCExpr &NumBytes, uint64_t FillValue,
SMLoc Loc = SMLoc()) override; SMLoc Loc = SMLoc()) override;
@ -819,9 +819,9 @@ void MCAsmStreamer::EmitGPRel32Value(const MCExpr *Value) {
EmitEOL(); 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'. /// 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; if (NumBytes == 0) return;
const MCExpr *E = MCConstantExpr::create(NumBytes, getContext()); const MCExpr *E = MCConstantExpr::create(NumBytes, getContext());

View File

@ -820,7 +820,7 @@ static void EmitGenDwarfRanges(MCStreamer *MCOS) {
// Emit a base address selection entry for the start of this section // Emit a base address selection entry for the start of this section
const MCExpr *SectionStartAddr = MCSymbolRefExpr::create( const MCExpr *SectionStartAddr = MCSymbolRefExpr::create(
StartSymbol, MCSymbolRefExpr::VK_None, context); StartSymbol, MCSymbolRefExpr::VK_None, context);
MCOS->EmitFill(AddrSize, 0xFF); MCOS->emitFill(AddrSize, 0xFF);
MCOS->EmitValue(SectionStartAddr, AddrSize); MCOS->EmitValue(SectionStartAddr, AddrSize);
// Emit a range list entry spanning this section // Emit a range list entry spanning this section

View File

@ -490,7 +490,7 @@ bool MCObjectStreamer::EmitRelocDirective(const MCExpr &Offset, StringRef Name,
return false; 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; const MCSection *Sec = getCurrentSection().first;
(void)Sec; (void)Sec;
assert(Sec && "need a section"); assert(Sec && "need a section");
@ -513,7 +513,7 @@ void MCObjectStreamer::emitFill(const MCExpr &NumBytes, uint64_t FillValue,
return; return;
} }
EmitFill(IntNumBytes, FillValue); emitFill(IntNumBytes, FillValue);
} }
void MCObjectStreamer::emitFill(const MCExpr &NumValues, int64_t Size, void MCObjectStreamer::emitFill(const MCExpr &NumValues, int64_t Size,

View File

@ -132,9 +132,9 @@ void MCStreamer::EmitGPRel32Value(const MCExpr *Value) {
report_fatal_error("unsupported directive in streamer"); report_fatal_error("unsupported directive in streamer");
} }
/// EmitFill - Emit NumBytes bytes worth of the value specified by /// Emit NumBytes bytes worth of the value specified by FillValue.
/// FillValue. This implements directives such as '.space'. /// This implements directives such as '.space'.
void MCStreamer::EmitFill(uint64_t NumBytes, uint8_t FillValue) { void MCStreamer::emitFill(uint64_t NumBytes, uint8_t FillValue) {
for (uint64_t i = 0, e = NumBytes; i != e; ++i) for (uint64_t i = 0, e = NumBytes; i != e; ++i)
EmitIntValue(FillValue, 1); 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) { void MCStreamer::EmitZeros(uint64_t NumBytes) {
EmitFill(NumBytes, 0); emitFill(NumBytes, 0);
} }
unsigned MCStreamer::EmitDwarfFileDirective(unsigned FileNo, unsigned MCStreamer::EmitDwarfFileDirective(unsigned FileNo,

View File

@ -792,7 +792,7 @@ void DwarfStreamer::emitUnitRangesEntries(CompileUnit &Unit,
Asm->EmitInt8(AddressSize); // Address size Asm->EmitInt8(AddressSize); // Address size
Asm->EmitInt8(0); // Segment size Asm->EmitInt8(0); // Segment size
Asm->OutStreamer->EmitFill(Padding, 0x0); Asm->OutStreamer->emitFill(Padding, 0x0);
for (auto Range = Ranges.begin(), End = Ranges.end(); Range != End; for (auto Range = Ranges.begin(), End = Ranges.end(); Range != End;
++Range) { ++Range) {