[MCStreamer] De-capitalize EmitValue EmitIntValue{,InHex}
diff --git a/llvm/lib/MC/ConstantPools.cpp b/llvm/lib/MC/ConstantPools.cpp
index a7e31ac..d419902 100644
--- a/llvm/lib/MC/ConstantPools.cpp
+++ b/llvm/lib/MC/ConstantPools.cpp
@@ -30,7 +30,7 @@
for (const ConstantPoolEntry &Entry : Entries) {
Streamer.emitCodeAlignment(Entry.Size); // align naturally
Streamer.emitLabel(Entry.Label);
- Streamer.EmitValue(Entry.Value, Entry.Size, Entry.Loc);
+ Streamer.emitValue(Entry.Value, Entry.Size, Entry.Loc);
}
Streamer.emitDataRegion(MCDR_DataRegionEnd);
Entries.clear();
diff --git a/llvm/lib/MC/MCAsmStreamer.cpp b/llvm/lib/MC/MCAsmStreamer.cpp
index f8972cf..7bc77c9 100644
--- a/llvm/lib/MC/MCAsmStreamer.cpp
+++ b/llvm/lib/MC/MCAsmStreamer.cpp
@@ -194,9 +194,9 @@
void emitValueImpl(const MCExpr *Value, unsigned Size,
SMLoc Loc = SMLoc()) override;
- void EmitIntValue(uint64_t Value, unsigned Size) override;
- void EmitIntValueInHex(uint64_t Value, unsigned Size) override;
- void EmitIntValueInHexWithPadding(uint64_t Value, unsigned Size) override;
+ void emitIntValue(uint64_t Value, unsigned Size) override;
+ void emitIntValueInHex(uint64_t Value, unsigned Size) override;
+ void emitIntValueInHexWithPadding(uint64_t Value, unsigned Size) override;
void emitULEB128Value(const MCExpr *Value) override;
@@ -966,17 +966,17 @@
}
}
-void MCAsmStreamer::EmitIntValue(uint64_t Value, unsigned Size) {
- EmitValue(MCConstantExpr::create(Value, getContext()), Size);
+void MCAsmStreamer::emitIntValue(uint64_t Value, unsigned Size) {
+ emitValue(MCConstantExpr::create(Value, getContext()), Size);
}
-void MCAsmStreamer::EmitIntValueInHex(uint64_t Value, unsigned Size) {
- EmitValue(MCConstantExpr::create(Value, getContext(), true), Size);
+void MCAsmStreamer::emitIntValueInHex(uint64_t Value, unsigned Size) {
+ emitValue(MCConstantExpr::create(Value, getContext(), true), Size);
}
-void MCAsmStreamer::EmitIntValueInHexWithPadding(uint64_t Value,
+void MCAsmStreamer::emitIntValueInHexWithPadding(uint64_t Value,
unsigned Size) {
- EmitValue(MCConstantExpr::create(Value, getContext(), true, Size), Size);
+ emitValue(MCConstantExpr::create(Value, getContext(), true, Size), Size);
}
void MCAsmStreamer::emitValueImpl(const MCExpr *Value, unsigned Size,
@@ -1021,7 +1021,7 @@
std::numeric_limits<unsigned long long>::digits) &&
"undefined behavior");
ValueToEmit &= ~0ULL >> Shift;
- EmitIntValue(ValueToEmit, EmissionSize);
+ emitIntValue(ValueToEmit, EmissionSize);
Emitted += EmissionSize;
}
return;
diff --git a/llvm/lib/MC/MCCodeView.cpp b/llvm/lib/MC/MCCodeView.cpp
index 66b1b14..82dfecc 100644
--- a/llvm/lib/MC/MCCodeView.cpp
+++ b/llvm/lib/MC/MCCodeView.cpp
@@ -172,7 +172,7 @@
MCSymbol *StringBegin = Ctx.createTempSymbol("strtab_begin", false),
*StringEnd = Ctx.createTempSymbol("strtab_end", false);
- OS.EmitIntValue(unsigned(DebugSubsectionKind::StringTable), 4);
+ OS.emitIntValue(unsigned(DebugSubsectionKind::StringTable), 4);
OS.emitAbsoluteSymbolDiff(StringEnd, StringBegin, 4);
OS.emitLabel(StringBegin);
@@ -199,7 +199,7 @@
MCSymbol *FileBegin = Ctx.createTempSymbol("filechecksums_begin", false),
*FileEnd = Ctx.createTempSymbol("filechecksums_end", false);
- OS.EmitIntValue(unsigned(DebugSubsectionKind::FileChecksums), 4);
+ OS.emitIntValue(unsigned(DebugSubsectionKind::FileChecksums), 4);
OS.emitAbsoluteSymbolDiff(FileEnd, FileBegin, 4);
OS.emitLabel(FileBegin);
@@ -221,16 +221,16 @@
CurrentOffset = alignTo(CurrentOffset, 4);
}
- OS.EmitIntValue(File.StringTableOffset, 4);
+ OS.emitIntValue(File.StringTableOffset, 4);
if (!File.ChecksumKind) {
// There is no checksum. Therefore zero the next two fields and align
// back to 4 bytes.
- OS.EmitIntValue(0, 4);
+ OS.emitIntValue(0, 4);
continue;
}
- OS.EmitIntValue(static_cast<uint8_t>(File.Checksum.size()), 1);
- OS.EmitIntValue(File.ChecksumKind, 1);
+ OS.emitIntValue(static_cast<uint8_t>(File.Checksum.size()), 1);
+ OS.emitIntValue(File.ChecksumKind, 1);
OS.emitBytes(toStringRef(File.Checksum));
OS.emitValueToAlignment(4);
}
@@ -331,7 +331,7 @@
MCSymbol *LineBegin = Ctx.createTempSymbol("linetable_begin", false),
*LineEnd = Ctx.createTempSymbol("linetable_end", false);
- OS.EmitIntValue(unsigned(DebugSubsectionKind::Lines), 4);
+ OS.emitIntValue(unsigned(DebugSubsectionKind::Lines), 4);
OS.emitAbsoluteSymbolDiff(LineEnd, LineBegin, 4);
OS.emitLabel(LineBegin);
OS.EmitCOFFSecRel32(FuncBegin, /*Offset=*/0);
@@ -342,7 +342,7 @@
bool HaveColumns = any_of(Locs, [](const MCCVLoc &LineEntry) {
return LineEntry.getColumn() != 0;
});
- OS.EmitIntValue(HaveColumns ? int(LF_HaveColumns) : 0, 2);
+ OS.emitIntValue(HaveColumns ? int(LF_HaveColumns) : 0, 2);
OS.emitAbsoluteSymbolDiff(FuncEnd, FuncBegin, 4);
for (auto I = Locs.begin(), E = Locs.end(); I != E;) {
@@ -359,24 +359,24 @@
->getContents()[Files[CurFileNum - 1].StringTableOffset]) +
"' begins");
OS.EmitCVFileChecksumOffsetDirective(CurFileNum);
- OS.EmitIntValue(EntryCount, 4);
+ OS.emitIntValue(EntryCount, 4);
uint32_t SegmentSize = 12;
SegmentSize += 8 * EntryCount;
if (HaveColumns)
SegmentSize += 4 * EntryCount;
- OS.EmitIntValue(SegmentSize, 4);
+ OS.emitIntValue(SegmentSize, 4);
for (auto J = I; J != FileSegEnd; ++J) {
OS.emitAbsoluteSymbolDiff(J->getLabel(), FuncBegin, 4);
unsigned LineData = J->getLine();
if (J->isStmt())
LineData |= LineInfo::StatementFlag;
- OS.EmitIntValue(LineData, 4);
+ OS.emitIntValue(LineData, 4);
}
if (HaveColumns) {
for (auto J = I; J != FileSegEnd; ++J) {
- OS.EmitIntValue(J->getColumn(), 2);
- OS.EmitIntValue(0, 2);
+ OS.emitIntValue(J->getColumn(), 2);
+ OS.emitIntValue(0, 2);
}
}
I = FileSegEnd;
diff --git a/llvm/lib/MC/MCDwarf.cpp b/llvm/lib/MC/MCDwarf.cpp
index 9417a04..ffe6bb3 100644
--- a/llvm/lib/MC/MCDwarf.cpp
+++ b/llvm/lib/MC/MCDwarf.cpp
@@ -163,38 +163,38 @@
if (FileNum != LineEntry.getFileNum()) {
FileNum = LineEntry.getFileNum();
- MCOS->EmitIntValue(dwarf::DW_LNS_set_file, 1);
+ MCOS->emitIntValue(dwarf::DW_LNS_set_file, 1);
MCOS->emitULEB128IntValue(FileNum);
}
if (Column != LineEntry.getColumn()) {
Column = LineEntry.getColumn();
- MCOS->EmitIntValue(dwarf::DW_LNS_set_column, 1);
+ MCOS->emitIntValue(dwarf::DW_LNS_set_column, 1);
MCOS->emitULEB128IntValue(Column);
}
if (Discriminator != LineEntry.getDiscriminator() &&
MCOS->getContext().getDwarfVersion() >= 4) {
Discriminator = LineEntry.getDiscriminator();
unsigned Size = getULEB128Size(Discriminator);
- MCOS->EmitIntValue(dwarf::DW_LNS_extended_op, 1);
+ MCOS->emitIntValue(dwarf::DW_LNS_extended_op, 1);
MCOS->emitULEB128IntValue(Size + 1);
- MCOS->EmitIntValue(dwarf::DW_LNE_set_discriminator, 1);
+ MCOS->emitIntValue(dwarf::DW_LNE_set_discriminator, 1);
MCOS->emitULEB128IntValue(Discriminator);
}
if (Isa != LineEntry.getIsa()) {
Isa = LineEntry.getIsa();
- MCOS->EmitIntValue(dwarf::DW_LNS_set_isa, 1);
+ MCOS->emitIntValue(dwarf::DW_LNS_set_isa, 1);
MCOS->emitULEB128IntValue(Isa);
}
if ((LineEntry.getFlags() ^ Flags) & DWARF2_FLAG_IS_STMT) {
Flags = LineEntry.getFlags();
- MCOS->EmitIntValue(dwarf::DW_LNS_negate_stmt, 1);
+ MCOS->emitIntValue(dwarf::DW_LNS_negate_stmt, 1);
}
if (LineEntry.getFlags() & DWARF2_FLAG_BASIC_BLOCK)
- MCOS->EmitIntValue(dwarf::DW_LNS_set_basic_block, 1);
+ MCOS->emitIntValue(dwarf::DW_LNS_set_basic_block, 1);
if (LineEntry.getFlags() & DWARF2_FLAG_PROLOGUE_END)
- MCOS->EmitIntValue(dwarf::DW_LNS_set_prologue_end, 1);
+ MCOS->emitIntValue(dwarf::DW_LNS_set_prologue_end, 1);
if (LineEntry.getFlags() & DWARF2_FLAG_EPILOGUE_BEGIN)
- MCOS->EmitIntValue(dwarf::DW_LNS_set_epilogue_begin, 1);
+ MCOS->emitIntValue(dwarf::DW_LNS_set_epilogue_begin, 1);
MCSymbol *Label = LineEntry.getLabel();
@@ -304,7 +304,7 @@
static void emitAbsValue(MCStreamer &OS, const MCExpr *Value, unsigned Size) {
const MCExpr *ABS = forceExpAbs(OS, Value);
- OS.EmitValue(ABS, Size);
+ OS.emitValue(ABS, Size);
}
void MCDwarfLineStr::emitSection(MCStreamer *MCOS) {
@@ -324,9 +324,9 @@
size_t Offset = LineStrings.add(Path);
if (UseRelocs) {
MCContext &Ctx = MCOS->getContext();
- MCOS->EmitValue(makeStartPlusIntExpr(Ctx, *LineStrLabel, Offset), RefSize);
+ MCOS->emitValue(makeStartPlusIntExpr(Ctx, *LineStrLabel, Offset), RefSize);
} else
- MCOS->EmitIntValue(Offset, RefSize);
+ MCOS->emitIntValue(Offset, RefSize);
}
void MCDwarfLineTableHeader::emitV2FileDirTables(MCStreamer *MCOS) const {
@@ -335,7 +335,7 @@
MCOS->emitBytes(Dir); // The DirectoryName, and...
MCOS->emitBytes(StringRef("\0", 1)); // its null terminator.
}
- MCOS->EmitIntValue(0, 1); // Terminate the directory list.
+ MCOS->emitIntValue(0, 1); // Terminate the directory list.
// Second the file table.
for (unsigned i = 1; i < MCDwarfFiles.size(); i++) {
@@ -343,10 +343,10 @@
MCOS->emitBytes(MCDwarfFiles[i].Name); // FileName and...
MCOS->emitBytes(StringRef("\0", 1)); // its null terminator.
MCOS->emitULEB128IntValue(MCDwarfFiles[i].DirIndex); // Directory number.
- MCOS->EmitIntValue(0, 1); // Last modification timestamp (always 0).
- MCOS->EmitIntValue(0, 1); // File size (always 0).
+ MCOS->emitIntValue(0, 1); // Last modification timestamp (always 0).
+ MCOS->emitIntValue(0, 1); // File size (always 0).
}
- MCOS->EmitIntValue(0, 1); // Terminate the file list.
+ MCOS->emitIntValue(0, 1); // Terminate the file list.
}
static void emitOneV5FileEntry(MCStreamer *MCOS, const MCDwarfFile &DwarfFile,
@@ -382,7 +382,7 @@
// The directory format, which is just a list of the directory paths. In a
// non-split object, these are references to .debug_line_str; in a split
// object, they are inline strings.
- MCOS->EmitIntValue(1, 1);
+ MCOS->emitIntValue(1, 1);
MCOS->emitULEB128IntValue(dwarf::DW_LNCT_path);
MCOS->emitULEB128IntValue(LineStr ? dwarf::DW_FORM_line_strp
: dwarf::DW_FORM_string);
@@ -414,7 +414,7 @@
Entries += 1;
if (HasSource)
Entries += 1;
- MCOS->EmitIntValue(Entries, 1);
+ MCOS->emitIntValue(Entries, 1);
MCOS->emitULEB128IntValue(dwarf::DW_LNCT_path);
MCOS->emitULEB128IntValue(LineStr ? dwarf::DW_FORM_line_strp
: dwarf::DW_FORM_string);
@@ -467,7 +467,7 @@
// Next 2 bytes is the Version.
unsigned LineTableVersion = context.getDwarfVersion();
- MCOS->EmitIntValue(LineTableVersion, 2);
+ MCOS->emitIntValue(LineTableVersion, 2);
// Keep track of the bytes between the very start and where the header length
// comes out.
@@ -475,8 +475,8 @@
// In v5, we get address info next.
if (LineTableVersion >= 5) {
- MCOS->EmitIntValue(context.getAsmInfo()->getCodePointerSize(), 1);
- MCOS->EmitIntValue(0, 1); // Segment selector; same as EmitGenDwarfAranges.
+ MCOS->emitIntValue(context.getAsmInfo()->getCodePointerSize(), 1);
+ MCOS->emitIntValue(0, 1); // Segment selector; same as EmitGenDwarfAranges.
PreHeaderLengthBytes += 2;
}
@@ -491,20 +491,20 @@
4);
// Parameters of the state machine, are next.
- MCOS->EmitIntValue(context.getAsmInfo()->getMinInstAlignment(), 1);
+ MCOS->emitIntValue(context.getAsmInfo()->getMinInstAlignment(), 1);
// maximum_operations_per_instruction
// For non-VLIW architectures this field is always 1.
// FIXME: VLIW architectures need to update this field accordingly.
if (LineTableVersion >= 4)
- MCOS->EmitIntValue(1, 1);
- MCOS->EmitIntValue(DWARF2_LINE_DEFAULT_IS_STMT, 1);
- MCOS->EmitIntValue(Params.DWARF2LineBase, 1);
- MCOS->EmitIntValue(Params.DWARF2LineRange, 1);
- MCOS->EmitIntValue(StandardOpcodeLengths.size() + 1, 1);
+ MCOS->emitIntValue(1, 1);
+ MCOS->emitIntValue(DWARF2_LINE_DEFAULT_IS_STMT, 1);
+ MCOS->emitIntValue(Params.DWARF2LineBase, 1);
+ MCOS->emitIntValue(Params.DWARF2LineRange, 1);
+ MCOS->emitIntValue(StandardOpcodeLengths.size() + 1, 1);
// Standard opcode lengths
for (char Length : StandardOpcodeLengths)
- MCOS->EmitIntValue(Length, 1);
+ MCOS->emitIntValue(Length, 1);
// Put out the directory and file tables. The formats vary depending on
// the version.
@@ -803,7 +803,7 @@
// DW_TAG_compile_unit DIE abbrev (1).
MCOS->emitULEB128IntValue(1);
MCOS->emitULEB128IntValue(dwarf::DW_TAG_compile_unit);
- MCOS->EmitIntValue(dwarf::DW_CHILDREN_yes, 1);
+ MCOS->emitIntValue(dwarf::DW_CHILDREN_yes, 1);
EmitAbbrev(MCOS, dwarf::DW_AT_stmt_list, context.getDwarfVersion() >= 4
? dwarf::DW_FORM_sec_offset
: dwarf::DW_FORM_data4);
@@ -829,7 +829,7 @@
// DW_TAG_label DIE abbrev (2).
MCOS->emitULEB128IntValue(2);
MCOS->emitULEB128IntValue(dwarf::DW_TAG_label);
- MCOS->EmitIntValue(dwarf::DW_CHILDREN_yes, 1);
+ MCOS->emitIntValue(dwarf::DW_CHILDREN_yes, 1);
EmitAbbrev(MCOS, dwarf::DW_AT_name, dwarf::DW_FORM_string);
EmitAbbrev(MCOS, dwarf::DW_AT_decl_file, dwarf::DW_FORM_data4);
EmitAbbrev(MCOS, dwarf::DW_AT_decl_line, dwarf::DW_FORM_data4);
@@ -840,11 +840,11 @@
// DW_TAG_unspecified_parameters DIE abbrev (3).
MCOS->emitULEB128IntValue(3);
MCOS->emitULEB128IntValue(dwarf::DW_TAG_unspecified_parameters);
- MCOS->EmitIntValue(dwarf::DW_CHILDREN_no, 1);
+ MCOS->emitIntValue(dwarf::DW_CHILDREN_no, 1);
EmitAbbrev(MCOS, 0, 0);
// Terminate the abbreviations for this compilation unit.
- MCOS->EmitIntValue(0, 1);
+ MCOS->emitIntValue(0, 1);
}
// When generating dwarf for assembly source files this emits the data for
@@ -880,23 +880,23 @@
// Emit the header for this section.
// The 4 byte length not including the 4 byte value for the length.
- MCOS->EmitIntValue(Length - 4, 4);
+ MCOS->emitIntValue(Length - 4, 4);
// The 2 byte version, which is 2.
- MCOS->EmitIntValue(2, 2);
+ MCOS->emitIntValue(2, 2);
// The 4 byte offset to the compile unit in the .debug_info from the start
// of the .debug_info.
if (InfoSectionSymbol)
MCOS->emitSymbolValue(InfoSectionSymbol, 4,
asmInfo->needsDwarfSectionOffsetDirective());
else
- MCOS->EmitIntValue(0, 4);
+ MCOS->emitIntValue(0, 4);
// The 1 byte size of an address.
- MCOS->EmitIntValue(AddrSize, 1);
+ MCOS->emitIntValue(AddrSize, 1);
// The 1 byte size of a segment descriptor, we use a value of zero.
- MCOS->EmitIntValue(0, 1);
+ MCOS->emitIntValue(0, 1);
// Align the header with the padding if needed, before we put out the table.
for(int i = 0; i < Pad; i++)
- MCOS->EmitIntValue(0, 1);
+ MCOS->emitIntValue(0, 1);
// Now emit the table of pairs of PointerSize'ed values for the section
// addresses and sizes.
@@ -910,13 +910,13 @@
StartSymbol, MCSymbolRefExpr::VK_None, context);
const MCExpr *Size = MakeStartMinusEndExpr(*MCOS,
*StartSymbol, *EndSymbol, 0);
- MCOS->EmitValue(Addr, AddrSize);
+ MCOS->emitValue(Addr, AddrSize);
emitAbsValue(*MCOS, Size, AddrSize);
}
// And finally the pair of terminating zeros.
- MCOS->EmitIntValue(0, AddrSize);
- MCOS->EmitIntValue(0, AddrSize);
+ MCOS->emitIntValue(0, AddrSize);
+ MCOS->emitIntValue(0, AddrSize);
}
// When generating dwarf for assembly source files this emits the data for
@@ -944,25 +944,25 @@
emitAbsValue(*MCOS, Length, 4);
// The 2 byte DWARF version.
- MCOS->EmitIntValue(context.getDwarfVersion(), 2);
+ MCOS->emitIntValue(context.getDwarfVersion(), 2);
// The DWARF v5 header has unit type, address size, abbrev offset.
// Earlier versions have abbrev offset, address size.
const MCAsmInfo &AsmInfo = *context.getAsmInfo();
int AddrSize = AsmInfo.getCodePointerSize();
if (context.getDwarfVersion() >= 5) {
- MCOS->EmitIntValue(dwarf::DW_UT_compile, 1);
- MCOS->EmitIntValue(AddrSize, 1);
+ MCOS->emitIntValue(dwarf::DW_UT_compile, 1);
+ MCOS->emitIntValue(AddrSize, 1);
}
// The 4 byte offset to the debug abbrevs from the start of the .debug_abbrev,
// it is at the start of that section so this is zero.
if (AbbrevSectionSymbol == nullptr)
- MCOS->EmitIntValue(0, 4);
+ MCOS->emitIntValue(0, 4);
else
MCOS->emitSymbolValue(AbbrevSectionSymbol, 4,
AsmInfo.needsDwarfSectionOffsetDirective());
if (context.getDwarfVersion() <= 4)
- MCOS->EmitIntValue(AddrSize, 1);
+ MCOS->emitIntValue(AddrSize, 1);
// Second part: the compile_unit DIE.
@@ -975,7 +975,7 @@
MCOS->emitSymbolValue(LineSectionSymbol, 4,
AsmInfo.needsDwarfSectionOffsetDirective());
else
- MCOS->EmitIntValue(0, 4);
+ MCOS->emitIntValue(0, 4);
if (RangesSectionSymbol) {
// There are multiple sections containing code, so we must use the
@@ -1001,12 +1001,12 @@
// AT_low_pc, the first address of the default .text section.
const MCExpr *Start = MCSymbolRefExpr::create(
StartSymbol, MCSymbolRefExpr::VK_None, context);
- MCOS->EmitValue(Start, AddrSize);
+ MCOS->emitValue(Start, AddrSize);
// AT_high_pc, the last address of the default .text section.
const MCExpr *End = MCSymbolRefExpr::create(
EndSymbol, MCSymbolRefExpr::VK_None, context);
- MCOS->EmitValue(End, AddrSize);
+ MCOS->emitValue(End, AddrSize);
}
// AT_name, the name of the source file. Reconstruct from the first directory
@@ -1025,19 +1025,19 @@
? context.getMCDwarfLineTable(/*CUID=*/0).getRootFile()
: MCDwarfFiles[1];
MCOS->emitBytes(RootFile.Name);
- MCOS->EmitIntValue(0, 1); // NULL byte to terminate the string.
+ MCOS->emitIntValue(0, 1); // NULL byte to terminate the string.
// AT_comp_dir, the working directory the assembly was done in.
if (!context.getCompilationDir().empty()) {
MCOS->emitBytes(context.getCompilationDir());
- MCOS->EmitIntValue(0, 1); // NULL byte to terminate the string.
+ MCOS->emitIntValue(0, 1); // NULL byte to terminate the string.
}
// AT_APPLE_flags, the command line arguments of the assembler tool.
StringRef DwarfDebugFlags = context.getDwarfDebugFlags();
if (!DwarfDebugFlags.empty()){
MCOS->emitBytes(DwarfDebugFlags);
- MCOS->EmitIntValue(0, 1); // NULL byte to terminate the string.
+ MCOS->emitIntValue(0, 1); // NULL byte to terminate the string.
}
// AT_producer, the version of the assembler tool.
@@ -1046,11 +1046,11 @@
MCOS->emitBytes(DwarfDebugProducer);
else
MCOS->emitBytes(StringRef("llvm-mc (based on LLVM " PACKAGE_VERSION ")"));
- MCOS->EmitIntValue(0, 1); // NULL byte to terminate the string.
+ MCOS->emitIntValue(0, 1); // NULL byte to terminate the string.
// AT_language, a 4 byte value. We use DW_LANG_Mips_Assembler as the dwarf2
// draft has no standard code for assembler.
- MCOS->EmitIntValue(dwarf::DW_LANG_Mips_Assembler, 2);
+ MCOS->emitIntValue(dwarf::DW_LANG_Mips_Assembler, 2);
// Third part: the list of label DIEs.
@@ -1063,31 +1063,31 @@
// AT_name, of the label without any leading underbar.
MCOS->emitBytes(Entry.getName());
- MCOS->EmitIntValue(0, 1); // NULL byte to terminate the string.
+ MCOS->emitIntValue(0, 1); // NULL byte to terminate the string.
// AT_decl_file, index into the file table.
- MCOS->EmitIntValue(Entry.getFileNumber(), 4);
+ MCOS->emitIntValue(Entry.getFileNumber(), 4);
// AT_decl_line, source line number.
- MCOS->EmitIntValue(Entry.getLineNumber(), 4);
+ MCOS->emitIntValue(Entry.getLineNumber(), 4);
// AT_low_pc, start address of the label.
const MCExpr *AT_low_pc = MCSymbolRefExpr::create(Entry.getLabel(),
MCSymbolRefExpr::VK_None, context);
- MCOS->EmitValue(AT_low_pc, AddrSize);
+ MCOS->emitValue(AT_low_pc, AddrSize);
// DW_AT_prototyped, a one byte flag value of 0 saying we have no prototype.
- MCOS->EmitIntValue(0, 1);
+ MCOS->emitIntValue(0, 1);
// The DW_TAG_unspecified_parameters DIE abbrev (3).
MCOS->emitULEB128IntValue(3);
// Add the NULL DIE terminating the DW_TAG_unspecified_parameters DIE's.
- MCOS->EmitIntValue(0, 1);
+ MCOS->emitIntValue(0, 1);
}
// Add the NULL DIE terminating the Compile Unit DIE's.
- MCOS->EmitIntValue(0, 1);
+ MCOS->emitIntValue(0, 1);
// Now set the value of the symbol at the end of the info section.
MCOS->emitLabel(InfoEnd);
@@ -1115,18 +1115,18 @@
const MCExpr *SectionStartAddr = MCSymbolRefExpr::create(
StartSymbol, MCSymbolRefExpr::VK_None, context);
MCOS->emitFill(AddrSize, 0xFF);
- MCOS->EmitValue(SectionStartAddr, AddrSize);
+ MCOS->emitValue(SectionStartAddr, AddrSize);
// Emit a range list entry spanning this section
const MCExpr *SectionSize = MakeStartMinusEndExpr(*MCOS,
*StartSymbol, *EndSymbol, 0);
- MCOS->EmitIntValue(0, AddrSize);
+ MCOS->emitIntValue(0, AddrSize);
emitAbsValue(*MCOS, SectionSize, AddrSize);
}
// Emit end of list entry
- MCOS->EmitIntValue(0, AddrSize);
- MCOS->EmitIntValue(0, AddrSize);
+ MCOS->emitIntValue(0, AddrSize);
+ MCOS->emitIntValue(0, AddrSize);
}
//
@@ -1283,7 +1283,7 @@
if (asmInfo->doDwarfFDESymbolsUseAbsDiff() && isEH)
emitAbsValue(streamer, v, size);
else
- streamer.EmitValue(v, size);
+ streamer.emitValue(v, size);
}
static void EmitPersonality(MCStreamer &streamer, const MCSymbol &symbol,
@@ -1294,7 +1294,7 @@
symbolEncoding,
streamer);
unsigned size = getSizeForEncoding(streamer, symbolEncoding);
- streamer.EmitValue(v, size);
+ streamer.emitValue(v, size);
}
namespace {
@@ -1323,7 +1323,7 @@
} // end anonymous namespace
static void emitEncodingByte(MCObjectStreamer &Streamer, unsigned Encoding) {
- Streamer.EmitIntValue(Encoding, 1);
+ Streamer.emitIntValue(Encoding, 1);
}
void FrameEmitterImpl::emitCFIInstruction(const MCCFIInstruction &Instr) {
@@ -1338,22 +1338,22 @@
Reg1 = MRI->getDwarfRegNumFromDwarfEHRegNum(Reg1);
Reg2 = MRI->getDwarfRegNumFromDwarfEHRegNum(Reg2);
}
- Streamer.EmitIntValue(dwarf::DW_CFA_register, 1);
+ Streamer.emitIntValue(dwarf::DW_CFA_register, 1);
Streamer.emitULEB128IntValue(Reg1);
Streamer.emitULEB128IntValue(Reg2);
return;
}
case MCCFIInstruction::OpWindowSave:
- Streamer.EmitIntValue(dwarf::DW_CFA_GNU_window_save, 1);
+ Streamer.emitIntValue(dwarf::DW_CFA_GNU_window_save, 1);
return;
case MCCFIInstruction::OpNegateRAState:
- Streamer.EmitIntValue(dwarf::DW_CFA_AARCH64_negate_ra_state, 1);
+ Streamer.emitIntValue(dwarf::DW_CFA_AARCH64_negate_ra_state, 1);
return;
case MCCFIInstruction::OpUndefined: {
unsigned Reg = Instr.getRegister();
- Streamer.EmitIntValue(dwarf::DW_CFA_undefined, 1);
+ Streamer.emitIntValue(dwarf::DW_CFA_undefined, 1);
Streamer.emitULEB128IntValue(Reg);
return;
}
@@ -1362,7 +1362,7 @@
const bool IsRelative =
Instr.getOperation() == MCCFIInstruction::OpAdjustCfaOffset;
- Streamer.EmitIntValue(dwarf::DW_CFA_def_cfa_offset, 1);
+ Streamer.emitIntValue(dwarf::DW_CFA_def_cfa_offset, 1);
if (IsRelative)
CFAOffset += Instr.getOffset();
@@ -1377,7 +1377,7 @@
unsigned Reg = Instr.getRegister();
if (!IsEH)
Reg = MRI->getDwarfRegNumFromDwarfEHRegNum(Reg);
- Streamer.EmitIntValue(dwarf::DW_CFA_def_cfa, 1);
+ Streamer.emitIntValue(dwarf::DW_CFA_def_cfa, 1);
Streamer.emitULEB128IntValue(Reg);
CFAOffset = -Instr.getOffset();
Streamer.emitULEB128IntValue(CFAOffset);
@@ -1388,7 +1388,7 @@
unsigned Reg = Instr.getRegister();
if (!IsEH)
Reg = MRI->getDwarfRegNumFromDwarfEHRegNum(Reg);
- Streamer.EmitIntValue(dwarf::DW_CFA_def_cfa_register, 1);
+ Streamer.emitIntValue(dwarf::DW_CFA_def_cfa_register, 1);
Streamer.emitULEB128IntValue(Reg);
return;
@@ -1408,28 +1408,28 @@
Offset = Offset / dataAlignmentFactor;
if (Offset < 0) {
- Streamer.EmitIntValue(dwarf::DW_CFA_offset_extended_sf, 1);
+ Streamer.emitIntValue(dwarf::DW_CFA_offset_extended_sf, 1);
Streamer.emitULEB128IntValue(Reg);
Streamer.emitSLEB128IntValue(Offset);
} else if (Reg < 64) {
- Streamer.EmitIntValue(dwarf::DW_CFA_offset + Reg, 1);
+ Streamer.emitIntValue(dwarf::DW_CFA_offset + Reg, 1);
Streamer.emitULEB128IntValue(Offset);
} else {
- Streamer.EmitIntValue(dwarf::DW_CFA_offset_extended, 1);
+ Streamer.emitIntValue(dwarf::DW_CFA_offset_extended, 1);
Streamer.emitULEB128IntValue(Reg);
Streamer.emitULEB128IntValue(Offset);
}
return;
}
case MCCFIInstruction::OpRememberState:
- Streamer.EmitIntValue(dwarf::DW_CFA_remember_state, 1);
+ Streamer.emitIntValue(dwarf::DW_CFA_remember_state, 1);
return;
case MCCFIInstruction::OpRestoreState:
- Streamer.EmitIntValue(dwarf::DW_CFA_restore_state, 1);
+ Streamer.emitIntValue(dwarf::DW_CFA_restore_state, 1);
return;
case MCCFIInstruction::OpSameValue: {
unsigned Reg = Instr.getRegister();
- Streamer.EmitIntValue(dwarf::DW_CFA_same_value, 1);
+ Streamer.emitIntValue(dwarf::DW_CFA_same_value, 1);
Streamer.emitULEB128IntValue(Reg);
return;
}
@@ -1438,15 +1438,15 @@
if (!IsEH)
Reg = MRI->getDwarfRegNumFromDwarfEHRegNum(Reg);
if (Reg < 64) {
- Streamer.EmitIntValue(dwarf::DW_CFA_restore | Reg, 1);
+ Streamer.emitIntValue(dwarf::DW_CFA_restore | Reg, 1);
} else {
- Streamer.EmitIntValue(dwarf::DW_CFA_restore_extended, 1);
+ Streamer.emitIntValue(dwarf::DW_CFA_restore_extended, 1);
Streamer.emitULEB128IntValue(Reg);
}
return;
}
case MCCFIInstruction::OpGnuArgsSize:
- Streamer.EmitIntValue(dwarf::DW_CFA_GNU_args_size, 1);
+ Streamer.emitIntValue(dwarf::DW_CFA_GNU_args_size, 1);
Streamer.emitULEB128IntValue(Instr.getOffset());
return;
@@ -1525,21 +1525,21 @@
// Compact Encoding
Size = getSizeForEncoding(Streamer, dwarf::DW_EH_PE_udata4);
- Streamer.EmitIntValue(Encoding, Size);
+ Streamer.emitIntValue(Encoding, Size);
// Personality Function
Size = getSizeForEncoding(Streamer, dwarf::DW_EH_PE_absptr);
if (!DwarfEHFrameOnly && Frame.Personality)
Streamer.emitSymbolValue(Frame.Personality, Size);
else
- Streamer.EmitIntValue(0, Size); // No personality fn
+ Streamer.emitIntValue(0, Size); // No personality fn
// LSDA
Size = getSizeForEncoding(Streamer, Frame.LsdaEncoding);
if (!DwarfEHFrameOnly && Frame.Lsda)
Streamer.emitSymbolValue(Frame.Lsda, Size);
else
- Streamer.EmitIntValue(0, Size); // No LSDA
+ Streamer.emitIntValue(0, Size); // No LSDA
}
static unsigned getCIEVersion(bool IsEH, unsigned DwarfVersion) {
@@ -1574,11 +1574,11 @@
// CIE ID
unsigned CIE_ID = IsEH ? 0 : -1;
- Streamer.EmitIntValue(CIE_ID, 4);
+ Streamer.emitIntValue(CIE_ID, 4);
// Version
uint8_t CIEVersion = getCIEVersion(IsEH, context.getDwarfVersion());
- Streamer.EmitIntValue(CIEVersion, 1);
+ Streamer.emitIntValue(CIEVersion, 1);
if (IsEH) {
SmallString<8> Augmentation;
@@ -1594,14 +1594,14 @@
Augmentation += "B";
Streamer.emitBytes(Augmentation);
}
- Streamer.EmitIntValue(0, 1);
+ Streamer.emitIntValue(0, 1);
if (CIEVersion >= 4) {
// Address Size
- Streamer.EmitIntValue(context.getAsmInfo()->getCodePointerSize(), 1);
+ Streamer.emitIntValue(context.getAsmInfo()->getCodePointerSize(), 1);
// Segment Descriptor Size
- Streamer.EmitIntValue(0, 1);
+ Streamer.emitIntValue(0, 1);
}
// Code Alignment Factor
@@ -1618,7 +1618,7 @@
if (CIEVersion == 1) {
assert(RAReg <= 255 &&
"DWARF 2 encodes return_address_register in one byte");
- Streamer.EmitIntValue(RAReg, 1);
+ Streamer.emitIntValue(RAReg, 1);
} else {
Streamer.emitULEB128IntValue(RAReg);
}
diff --git a/llvm/lib/MC/MCELFStreamer.cpp b/llvm/lib/MC/MCELFStreamer.cpp
index 131c1bb..b2a6978 100644
--- a/llvm/lib/MC/MCELFStreamer.cpp
+++ b/llvm/lib/MC/MCELFStreamer.cpp
@@ -368,11 +368,11 @@
PushSection();
SwitchSection(Comment);
if (!SeenIdent) {
- EmitIntValue(0, 1);
+ emitIntValue(0, 1);
SeenIdent = true;
}
emitBytes(IdentString);
- EmitIntValue(0, 1);
+ emitIntValue(0, 1);
PopSection();
}
diff --git a/llvm/lib/MC/MCObjectStreamer.cpp b/llvm/lib/MC/MCObjectStreamer.cpp
index a785ef3..850a3a9 100644
--- a/llvm/lib/MC/MCObjectStreamer.cpp
+++ b/llvm/lib/MC/MCObjectStreamer.cpp
@@ -145,7 +145,7 @@
const MCSymbol *Lo,
unsigned Size) {
if (Optional<uint64_t> Diff = absoluteSymbolDiff(getAssembler(), Hi, Lo)) {
- EmitIntValue(*Diff, Size);
+ emitIntValue(*Diff, Size);
return;
}
MCStreamer::emitAbsoluteSymbolDiff(Hi, Lo, Size);
@@ -241,7 +241,7 @@
Loc, "value evaluated as " + Twine(AbsValue) + " is out of range.");
return;
}
- EmitIntValue(AbsValue, Size);
+ emitIntValue(AbsValue, Size);
return;
}
DF->getFixups().push_back(
@@ -472,9 +472,9 @@
int64_t LineDelta, const MCSymbol *Label,
int PointerSize) {
// emit the sequence to set the address
- OS.EmitIntValue(dwarf::DW_LNS_extended_op, 1);
+ OS.emitIntValue(dwarf::DW_LNS_extended_op, 1);
OS.emitULEB128IntValue(PointerSize + 1);
- OS.EmitIntValue(dwarf::DW_LNE_set_address, 1);
+ OS.emitIntValue(dwarf::DW_LNE_set_address, 1);
OS.emitSymbolValue(Label, PointerSize);
// emit the sequence for the LineDelta (from 1) and a zero address delta.
@@ -723,9 +723,9 @@
int64_t NonZeroSize = Size > 4 ? 4 : Size;
Expr &= ~0ULL >> (64 - NonZeroSize * 8);
for (uint64_t i = 0, e = IntNumValues; i != e; ++i) {
- EmitIntValue(Expr, NonZeroSize);
+ emitIntValue(Expr, NonZeroSize);
if (NonZeroSize < Size)
- EmitIntValue(0, Size - NonZeroSize);
+ emitIntValue(0, Size - NonZeroSize);
}
return;
}
diff --git a/llvm/lib/MC/MCParser/AsmParser.cpp b/llvm/lib/MC/MCParser/AsmParser.cpp
index b9aa95b..97b2328 100644
--- a/llvm/lib/MC/MCParser/AsmParser.cpp
+++ b/llvm/lib/MC/MCParser/AsmParser.cpp
@@ -3049,9 +3049,9 @@
uint64_t IntValue = MCE->getValue();
if (!isUIntN(8 * Size, IntValue) && !isIntN(8 * Size, IntValue))
return Error(ExprLoc, "out of range literal value");
- getStreamer().EmitIntValue(IntValue, Size);
+ getStreamer().emitIntValue(IntValue, Size);
} else
- getStreamer().EmitValue(Value, Size, ExprLoc);
+ getStreamer().emitValue(Value, Size, ExprLoc);
return false;
};
@@ -3090,11 +3090,11 @@
if (parseHexOcta(*this, hi, lo))
return true;
if (MAI.isLittleEndian()) {
- getStreamer().EmitIntValue(lo, 8);
- getStreamer().EmitIntValue(hi, 8);
+ getStreamer().emitIntValue(lo, 8);
+ getStreamer().emitIntValue(hi, 8);
} else {
- getStreamer().EmitIntValue(hi, 8);
- getStreamer().EmitIntValue(lo, 8);
+ getStreamer().emitIntValue(hi, 8);
+ getStreamer().emitIntValue(lo, 8);
}
return false;
};
@@ -3153,7 +3153,7 @@
APInt AsInt;
if (checkForValidSection() || parseRealValue(Semantics, AsInt))
return true;
- getStreamer().EmitIntValue(AsInt.getLimitedValue(),
+ getStreamer().emitIntValue(AsInt.getLimitedValue(),
AsInt.getBitWidth() / 8);
return false;
};
@@ -3979,7 +3979,7 @@
// Put the string in the table and emit the offset.
std::pair<StringRef, unsigned> Insertion =
getCVContext().addToStringTable(Data);
- getStreamer().EmitIntValue(Insertion.second, 4);
+ getStreamer().emitIntValue(Insertion.second, 4);
return false;
}
@@ -4752,10 +4752,10 @@
if (!isUIntN(8 * Size, IntValue) && !isIntN(8 * Size, IntValue))
return Error(ExprLoc, "literal value out of range for directive");
for (uint64_t i = 0, e = NumValues; i != e; ++i)
- getStreamer().EmitIntValue(IntValue, Size);
+ getStreamer().emitIntValue(IntValue, Size);
} else {
for (uint64_t i = 0, e = NumValues; i != e; ++i)
- getStreamer().EmitValue(Value, Size, ExprLoc);
+ getStreamer().emitValue(Value, Size, ExprLoc);
}
if (parseToken(AsmToken::EndOfStatement,
@@ -4791,7 +4791,7 @@
return true;
for (uint64_t i = 0, e = NumValues; i != e; ++i)
- getStreamer().EmitIntValue(AsInt.getLimitedValue(),
+ getStreamer().emitIntValue(AsInt.getLimitedValue(),
AsInt.getBitWidth() / 8);
return false;
diff --git a/llvm/lib/MC/MCParser/ELFAsmParser.cpp b/llvm/lib/MC/MCParser/ELFAsmParser.cpp
index 4e4272d..30362a4 100644
--- a/llvm/lib/MC/MCParser/ELFAsmParser.cpp
+++ b/llvm/lib/MC/MCParser/ELFAsmParser.cpp
@@ -797,11 +797,11 @@
getStreamer().PushSection();
getStreamer().SwitchSection(Note);
- getStreamer().EmitIntValue(Data.size()+1, 4); // namesz.
- getStreamer().EmitIntValue(0, 4); // descsz = 0 (no description).
- getStreamer().EmitIntValue(1, 4); // type = NT_VERSION.
+ getStreamer().emitIntValue(Data.size()+1, 4); // namesz.
+ getStreamer().emitIntValue(0, 4); // descsz = 0 (no description).
+ getStreamer().emitIntValue(1, 4); // type = NT_VERSION.
getStreamer().emitBytes(Data); // name.
- getStreamer().EmitIntValue(0, 1); // terminate the string.
+ getStreamer().emitIntValue(0, 1); // terminate the string.
getStreamer().emitValueToAlignment(4); // ensure 4 byte alignment.
getStreamer().PopSection();
return false;
diff --git a/llvm/lib/MC/MCStreamer.cpp b/llvm/lib/MC/MCStreamer.cpp
index 83c5d14..2c11e03 100644
--- a/llvm/lib/MC/MCStreamer.cpp
+++ b/llvm/lib/MC/MCStreamer.cpp
@@ -128,7 +128,7 @@
/// EmitIntValue - Special case of EmitValue that avoids the client having to
/// pass in a MCExpr for constant integers.
-void MCStreamer::EmitIntValue(uint64_t Value, unsigned Size) {
+void MCStreamer::emitIntValue(uint64_t Value, unsigned Size) {
assert(1 <= Size && Size <= 8 && "Invalid size");
assert((isUIntN(8 * Size, Value) || isIntN(8 * Size, Value)) &&
"Invalid size");
@@ -159,7 +159,7 @@
emitBytes(OSE.str());
}
-void MCStreamer::EmitValue(const MCExpr *Value, unsigned Size, SMLoc Loc) {
+void MCStreamer::emitValue(const MCExpr *Value, unsigned Size, SMLoc Loc) {
emitValueImpl(Value, Size, Loc);
}
@@ -1027,7 +1027,7 @@
const MCAsmInfo *MAI = Context.getAsmInfo();
if (!MAI->doesSetDirectiveSuppressReloc()) {
- EmitValue(Diff, Size);
+ emitValue(Diff, Size);
return;
}
diff --git a/llvm/lib/MC/MCWin64EH.cpp b/llvm/lib/MC/MCWin64EH.cpp
index ca40b86..9e08e82 100644
--- a/llvm/lib/MC/MCWin64EH.cpp
+++ b/llvm/lib/MC/MCWin64EH.cpp
@@ -55,7 +55,7 @@
const MCExpr *Diff =
MCBinaryExpr::createSub(MCSymbolRefExpr::create(LHS, Context),
MCSymbolRefExpr::create(RHS, Context), Context);
- Streamer.EmitValue(Diff, 1);
+ Streamer.emitValue(Diff, 1);
}
static void EmitUnwindCode(MCStreamer &streamer, const MCSymbol *begin,
@@ -69,59 +69,59 @@
case Win64EH::UOP_PushNonVol:
EmitAbsDifference(streamer, inst.Label, begin);
b2 |= (inst.Register & 0x0F) << 4;
- streamer.EmitIntValue(b2, 1);
+ streamer.emitIntValue(b2, 1);
break;
case Win64EH::UOP_AllocLarge:
EmitAbsDifference(streamer, inst.Label, begin);
if (inst.Offset > 512 * 1024 - 8) {
b2 |= 0x10;
- streamer.EmitIntValue(b2, 1);
+ streamer.emitIntValue(b2, 1);
w = inst.Offset & 0xFFF8;
- streamer.EmitIntValue(w, 2);
+ streamer.emitIntValue(w, 2);
w = inst.Offset >> 16;
} else {
- streamer.EmitIntValue(b2, 1);
+ streamer.emitIntValue(b2, 1);
w = inst.Offset >> 3;
}
- streamer.EmitIntValue(w, 2);
+ streamer.emitIntValue(w, 2);
break;
case Win64EH::UOP_AllocSmall:
b2 |= (((inst.Offset - 8) >> 3) & 0x0F) << 4;
EmitAbsDifference(streamer, inst.Label, begin);
- streamer.EmitIntValue(b2, 1);
+ streamer.emitIntValue(b2, 1);
break;
case Win64EH::UOP_SetFPReg:
EmitAbsDifference(streamer, inst.Label, begin);
- streamer.EmitIntValue(b2, 1);
+ streamer.emitIntValue(b2, 1);
break;
case Win64EH::UOP_SaveNonVol:
case Win64EH::UOP_SaveXMM128:
b2 |= (inst.Register & 0x0F) << 4;
EmitAbsDifference(streamer, inst.Label, begin);
- streamer.EmitIntValue(b2, 1);
+ streamer.emitIntValue(b2, 1);
w = inst.Offset >> 3;
if (inst.Operation == Win64EH::UOP_SaveXMM128)
w >>= 1;
- streamer.EmitIntValue(w, 2);
+ streamer.emitIntValue(w, 2);
break;
case Win64EH::UOP_SaveNonVolBig:
case Win64EH::UOP_SaveXMM128Big:
b2 |= (inst.Register & 0x0F) << 4;
EmitAbsDifference(streamer, inst.Label, begin);
- streamer.EmitIntValue(b2, 1);
+ streamer.emitIntValue(b2, 1);
if (inst.Operation == Win64EH::UOP_SaveXMM128Big)
w = inst.Offset & 0xFFF0;
else
w = inst.Offset & 0xFFF8;
- streamer.EmitIntValue(w, 2);
+ streamer.emitIntValue(w, 2);
w = inst.Offset >> 16;
- streamer.EmitIntValue(w, 2);
+ streamer.emitIntValue(w, 2);
break;
case Win64EH::UOP_PushMachFrame:
if (inst.Offset == 1)
b2 |= 0x10;
EmitAbsDifference(streamer, inst.Label, begin);
- streamer.EmitIntValue(b2, 1);
+ streamer.emitIntValue(b2, 1);
break;
}
}
@@ -136,7 +136,7 @@
const MCSymbolRefExpr *BaseRefRel = MCSymbolRefExpr::create(Base,
MCSymbolRefExpr::VK_COFF_IMGREL32,
Context);
- streamer.EmitValue(MCBinaryExpr::createAdd(BaseRefRel, Ofs, Context), 4);
+ streamer.emitValue(MCBinaryExpr::createAdd(BaseRefRel, Ofs, Context), 4);
}
static void EmitRuntimeFunction(MCStreamer &streamer,
@@ -146,7 +146,7 @@
streamer.emitValueToAlignment(4);
EmitSymbolRefWithOfs(streamer, info->Function, info->Begin);
EmitSymbolRefWithOfs(streamer, info->Function, info->End);
- streamer.EmitValue(MCSymbolRefExpr::create(info->Symbol,
+ streamer.emitValue(MCSymbolRefExpr::create(info->Symbol,
MCSymbolRefExpr::VK_COFF_IMGREL32,
context), 4);
}
@@ -173,15 +173,15 @@
if (info->HandlesExceptions)
flags |= Win64EH::UNW_ExceptionHandler << 3;
}
- streamer.EmitIntValue(flags, 1);
+ streamer.emitIntValue(flags, 1);
if (info->PrologEnd)
EmitAbsDifference(streamer, info->PrologEnd, info->Begin);
else
- streamer.EmitIntValue(0, 1);
+ streamer.emitIntValue(0, 1);
uint8_t numCodes = CountOfUnwindCodes(info->Instructions);
- streamer.EmitIntValue(numCodes, 1);
+ streamer.emitIntValue(numCodes, 1);
uint8_t frame = 0;
if (info->LastFrameInst >= 0) {
@@ -189,7 +189,7 @@
assert(frameInst.Operation == Win64EH::UOP_SetFPReg);
frame = (frameInst.Register & 0x0F) | (frameInst.Offset & 0xF0);
}
- streamer.EmitIntValue(frame, 1);
+ streamer.emitIntValue(frame, 1);
// Emit unwind instructions (in reverse order).
uint8_t numInst = info->Instructions.size();
@@ -204,21 +204,21 @@
// the array will be one longer than indicated by the count of unwind codes
// field).
if (numCodes & 1) {
- streamer.EmitIntValue(0, 2);
+ streamer.emitIntValue(0, 2);
}
if (flags & (Win64EH::UNW_ChainInfo << 3))
EmitRuntimeFunction(streamer, info->ChainedParent);
else if (flags &
((Win64EH::UNW_TerminateHandler|Win64EH::UNW_ExceptionHandler) << 3))
- streamer.EmitValue(MCSymbolRefExpr::create(info->ExceptionHandler,
+ streamer.emitValue(MCSymbolRefExpr::create(info->ExceptionHandler,
MCSymbolRefExpr::VK_COFF_IMGREL32,
context), 4);
else if (numCodes == 0) {
// The minimum size of an UNWIND_INFO struct is 8 bytes. If we're not
// a chained unwind info, if there is no handler, and if there are fewer
// than 2 slots used in the unwind code array, we have to pad to 8 bytes.
- streamer.EmitIntValue(0, 4);
+ streamer.emitIntValue(0, 4);
}
}
@@ -337,121 +337,121 @@
llvm_unreachable("Unsupported ARM64 unwind code");
case Win64EH::UOP_AllocSmall:
b = (inst.Offset >> 4) & 0x1F;
- streamer.EmitIntValue(b, 1);
+ streamer.emitIntValue(b, 1);
break;
case Win64EH::UOP_AllocMedium: {
uint16_t hw = (inst.Offset >> 4) & 0x7FF;
b = 0xC0;
b |= (hw >> 8);
- streamer.EmitIntValue(b, 1);
+ streamer.emitIntValue(b, 1);
b = hw & 0xFF;
- streamer.EmitIntValue(b, 1);
+ streamer.emitIntValue(b, 1);
break;
}
case Win64EH::UOP_AllocLarge: {
uint32_t w;
b = 0xE0;
- streamer.EmitIntValue(b, 1);
+ streamer.emitIntValue(b, 1);
w = inst.Offset >> 4;
b = (w & 0x00FF0000) >> 16;
- streamer.EmitIntValue(b, 1);
+ streamer.emitIntValue(b, 1);
b = (w & 0x0000FF00) >> 8;
- streamer.EmitIntValue(b, 1);
+ streamer.emitIntValue(b, 1);
b = w & 0x000000FF;
- streamer.EmitIntValue(b, 1);
+ streamer.emitIntValue(b, 1);
break;
}
case Win64EH::UOP_SetFP:
b = 0xE1;
- streamer.EmitIntValue(b, 1);
+ streamer.emitIntValue(b, 1);
break;
case Win64EH::UOP_AddFP:
b = 0xE2;
- streamer.EmitIntValue(b, 1);
+ streamer.emitIntValue(b, 1);
b = (inst.Offset >> 3);
- streamer.EmitIntValue(b, 1);
+ streamer.emitIntValue(b, 1);
break;
case Win64EH::UOP_Nop:
b = 0xE3;
- streamer.EmitIntValue(b, 1);
+ streamer.emitIntValue(b, 1);
break;
case Win64EH::UOP_SaveFPLRX:
b = 0x80;
b |= ((inst.Offset - 1) >> 3) & 0x3F;
- streamer.EmitIntValue(b, 1);
+ streamer.emitIntValue(b, 1);
break;
case Win64EH::UOP_SaveFPLR:
b = 0x40;
b |= (inst.Offset >> 3) & 0x3F;
- streamer.EmitIntValue(b, 1);
+ streamer.emitIntValue(b, 1);
break;
case Win64EH::UOP_SaveReg:
assert(inst.Register >= 19 && "Saved reg must be >= 19");
reg = inst.Register - 19;
b = 0xD0 | ((reg & 0xC) >> 2);
- streamer.EmitIntValue(b, 1);
+ streamer.emitIntValue(b, 1);
b = ((reg & 0x3) << 6) | (inst.Offset >> 3);
- streamer.EmitIntValue(b, 1);
+ streamer.emitIntValue(b, 1);
break;
case Win64EH::UOP_SaveRegX:
assert(inst.Register >= 19 && "Saved reg must be >= 19");
reg = inst.Register - 19;
b = 0xD4 | ((reg & 0x8) >> 3);
- streamer.EmitIntValue(b, 1);
+ streamer.emitIntValue(b, 1);
b = ((reg & 0x7) << 5) | ((inst.Offset >> 3) - 1);
- streamer.EmitIntValue(b, 1);
+ streamer.emitIntValue(b, 1);
break;
case Win64EH::UOP_SaveRegP:
assert(inst.Register >= 19 && "Saved registers must be >= 19");
reg = inst.Register - 19;
b = 0xC8 | ((reg & 0xC) >> 2);
- streamer.EmitIntValue(b, 1);
+ streamer.emitIntValue(b, 1);
b = ((reg & 0x3) << 6) | (inst.Offset >> 3);
- streamer.EmitIntValue(b, 1);
+ streamer.emitIntValue(b, 1);
break;
case Win64EH::UOP_SaveRegPX:
assert(inst.Register >= 19 && "Saved registers must be >= 19");
reg = inst.Register - 19;
b = 0xCC | ((reg & 0xC) >> 2);
- streamer.EmitIntValue(b, 1);
+ streamer.emitIntValue(b, 1);
b = ((reg & 0x3) << 6) | ((inst.Offset >> 3) - 1);
- streamer.EmitIntValue(b, 1);
+ streamer.emitIntValue(b, 1);
break;
case Win64EH::UOP_SaveFReg:
assert(inst.Register >= 8 && "Saved dreg must be >= 8");
reg = inst.Register - 8;
b = 0xDC | ((reg & 0x4) >> 2);
- streamer.EmitIntValue(b, 1);
+ streamer.emitIntValue(b, 1);
b = ((reg & 0x3) << 6) | (inst.Offset >> 3);
- streamer.EmitIntValue(b, 1);
+ streamer.emitIntValue(b, 1);
break;
case Win64EH::UOP_SaveFRegX:
assert(inst.Register >= 8 && "Saved dreg must be >= 8");
reg = inst.Register - 8;
b = 0xDE;
- streamer.EmitIntValue(b, 1);
+ streamer.emitIntValue(b, 1);
b = ((reg & 0x7) << 5) | ((inst.Offset >> 3) - 1);
- streamer.EmitIntValue(b, 1);
+ streamer.emitIntValue(b, 1);
break;
case Win64EH::UOP_SaveFRegP:
assert(inst.Register >= 8 && "Saved dregs must be >= 8");
reg = inst.Register - 8;
b = 0xD8 | ((reg & 0x4) >> 2);
- streamer.EmitIntValue(b, 1);
+ streamer.emitIntValue(b, 1);
b = ((reg & 0x3) << 6) | (inst.Offset >> 3);
- streamer.EmitIntValue(b, 1);
+ streamer.emitIntValue(b, 1);
break;
case Win64EH::UOP_SaveFRegPX:
assert(inst.Register >= 8 && "Saved dregs must be >= 8");
reg = inst.Register - 8;
b = 0xDA | ((reg & 0x4) >> 2);
- streamer.EmitIntValue(b, 1);
+ streamer.emitIntValue(b, 1);
b = ((reg & 0x3) << 6) | ((inst.Offset >> 3) - 1);
- streamer.EmitIntValue(b, 1);
+ streamer.emitIntValue(b, 1);
break;
case Win64EH::UOP_End:
b = 0xE4;
- streamer.EmitIntValue(b, 1);
+ streamer.emitIntValue(b, 1);
break;
}
}
@@ -585,7 +585,7 @@
if (info->HandlesExceptions) // X
row1 |= 1 << 20;
row1 |= FuncLength & 0x3FFFF;
- streamer.EmitIntValue(row1, 4);
+ streamer.emitIntValue(row1, 4);
// Extended Code Words, Extended Epilog Count
if (ExtensionWord) {
@@ -597,7 +597,7 @@
uint32_t row2 = 0x0;
row2 |= (CodeWords & 0xFF) << 16;
row2 |= (EpilogCount & 0xFFFF);
- streamer.EmitIntValue(row2, 4);
+ streamer.emitIntValue(row2, 4);
}
// Epilog Start Index, Epilog Start Offset
@@ -610,7 +610,7 @@
EpilogOffset /= 4;
uint32_t row3 = EpilogOffset;
row3 |= (EpilogIndex & 0x3FF) << 22;
- streamer.EmitIntValue(row3, 4);
+ streamer.emitIntValue(row3, 4);
}
// Emit prolog unwind instructions (in reverse order).
@@ -633,10 +633,10 @@
int32_t BytesMod = CodeWords * 4 - TotalCodeBytes;
assert(BytesMod >= 0);
for (int i = 0; i < BytesMod; i++)
- streamer.EmitIntValue(0xE3, 1);
+ streamer.emitIntValue(0xE3, 1);
if (info->HandlesExceptions)
- streamer.EmitValue(
+ streamer.emitValue(
MCSymbolRefExpr::create(info->ExceptionHandler,
MCSymbolRefExpr::VK_COFF_IMGREL32, context),
4);
@@ -648,7 +648,7 @@
streamer.emitValueToAlignment(4);
EmitSymbolRefWithOfs(streamer, info->Function, info->Begin);
- streamer.EmitValue(MCSymbolRefExpr::create(info->Symbol,
+ streamer.emitValue(MCSymbolRefExpr::create(info->Symbol,
MCSymbolRefExpr::VK_COFF_IMGREL32,
context),
4);