mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-02 08:46:37 +00:00
[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:
parent
d8d85ac3c9
commit
ac42e994d0
@ -140,7 +140,7 @@ public:
|
||||
void EmitGPRel64Value(const MCExpr *Value) override;
|
||||
bool EmitRelocDirective(const MCExpr &Offset, StringRef Name,
|
||||
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,
|
||||
SMLoc Loc = SMLoc()) override;
|
||||
void emitFill(const MCExpr &NumValues, int64_t Size, int64_t Expr,
|
||||
|
@ -579,7 +579,7 @@ public:
|
||||
|
||||
/// \brief 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);
|
||||
virtual void emitFill(uint64_t NumBytes, uint8_t FillValue);
|
||||
|
||||
/// \brief Emit \p Size bytes worth of the value specified by \p FillValue.
|
||||
///
|
||||
|
@ -1955,7 +1955,7 @@ static void emitGlobalConstantDataSequential(const DataLayout &DL,
|
||||
uint64_t Bytes = DL.getTypeAllocSize(CDS->getType());
|
||||
// Don't emit a 1-byte object as a .fill.
|
||||
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.
|
||||
@ -1994,7 +1994,7 @@ static void emitGlobalConstantArray(const DataLayout &DL,
|
||||
|
||||
if (Value != -1) {
|
||||
uint64_t Bytes = DL.getTypeAllocSize(CA->getType());
|
||||
AP.OutStreamer->EmitFill(Bytes, Value);
|
||||
AP.OutStreamer->emitFill(Bytes, Value);
|
||||
}
|
||||
else {
|
||||
for (unsigned i = 0, e = CA->getNumOperands(); i != e; ++i) {
|
||||
|
@ -1666,7 +1666,7 @@ void DwarfDebug::emitDebugARanges() {
|
||||
Asm->OutStreamer->AddComment("Segment Size (in bytes)");
|
||||
Asm->EmitInt8(0);
|
||||
|
||||
Asm->OutStreamer->EmitFill(Padding, 0xff);
|
||||
Asm->OutStreamer->emitFill(Padding, 0xff);
|
||||
|
||||
for (const ArangeSpan &Span : List) {
|
||||
Asm->EmitLabelReference(Span.Start, PtrSize);
|
||||
|
@ -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());
|
||||
|
@ -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
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -792,7 +792,7 @@ void DwarfStreamer::emitUnitRangesEntries(CompileUnit &Unit,
|
||||
Asm->EmitInt8(AddressSize); // Address 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;
|
||||
++Range) {
|
||||
|
Loading…
Reference in New Issue
Block a user