[llvm] 67b4afc - [DWARFYAML] Rename function names to match the coding style. NFC.
Xing GUO via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 8 02:28:29 PDT 2020
Author: Xing GUO
Date: 2020-06-08T17:31:02+08:00
New Revision: 67b4afc41adc81382a9c5c024a6941cf2daa1b9b
URL: https://github.com/llvm/llvm-project/commit/67b4afc41adc81382a9c5c024a6941cf2daa1b9b
DIFF: https://github.com/llvm/llvm-project/commit/67b4afc41adc81382a9c5c024a6941cf2daa1b9b.diff
LOG: [DWARFYAML] Rename function names to match the coding style. NFC.
Added:
Modified:
llvm/include/llvm/ObjectYAML/DWARFEmitter.h
llvm/lib/ObjectYAML/DWARFEmitter.cpp
llvm/lib/ObjectYAML/ELFEmitter.cpp
llvm/lib/ObjectYAML/MachOEmitter.cpp
llvm/unittests/DebugInfo/DWARF/DWARFDebugInfoTest.cpp
llvm/unittests/DebugInfo/DWARF/DWARFDieTest.cpp
llvm/unittests/DebugInfo/GSYM/GSYMTest.cpp
Removed:
################################################################################
diff --git a/llvm/include/llvm/ObjectYAML/DWARFEmitter.h b/llvm/include/llvm/ObjectYAML/DWARFEmitter.h
index b6613265c778..cad752140a1e 100644
--- a/llvm/include/llvm/ObjectYAML/DWARFEmitter.h
+++ b/llvm/include/llvm/ObjectYAML/DWARFEmitter.h
@@ -28,18 +28,18 @@ namespace DWARFYAML {
struct Data;
struct PubSection;
-void EmitDebugAbbrev(raw_ostream &OS, const Data &DI);
-void EmitDebugStr(raw_ostream &OS, const Data &DI);
+void emitDebugAbbrev(raw_ostream &OS, const Data &DI);
+void emitDebugStr(raw_ostream &OS, const Data &DI);
-void EmitDebugAranges(raw_ostream &OS, const Data &DI);
-void EmitDebugRanges(raw_ostream &OS, const Data &DI);
-void EmitPubSection(raw_ostream &OS, const PubSection &Sect,
+void emitDebugAranges(raw_ostream &OS, const Data &DI);
+void emitDebugRanges(raw_ostream &OS, const Data &DI);
+void emitPubSection(raw_ostream &OS, const PubSection &Sect,
bool IsLittleEndian);
-void EmitDebugInfo(raw_ostream &OS, const Data &DI);
-void EmitDebugLine(raw_ostream &OS, const Data &DI);
+void emitDebugInfo(raw_ostream &OS, const Data &DI);
+void emitDebugLine(raw_ostream &OS, const Data &DI);
Expected<StringMap<std::unique_ptr<MemoryBuffer>>>
-EmitDebugSections(StringRef YAMLString, bool ApplyFixups = false,
+emitDebugSections(StringRef YAMLString, bool ApplyFixups = false,
bool IsLittleEndian = sys::IsLittleEndianHost);
} // end namespace DWARFYAML
} // end namespace llvm
diff --git a/llvm/lib/ObjectYAML/DWARFEmitter.cpp b/llvm/lib/ObjectYAML/DWARFEmitter.cpp
index 16bbad172b08..dcf07f0f2d82 100644
--- a/llvm/lib/ObjectYAML/DWARFEmitter.cpp
+++ b/llvm/lib/ObjectYAML/DWARFEmitter.cpp
@@ -69,14 +69,14 @@ static void writeInitialLength(const DWARFYAML::InitialLength &Length,
writeInteger((uint64_t)Length.TotalLength64, OS, IsLittleEndian);
}
-void DWARFYAML::EmitDebugStr(raw_ostream &OS, const DWARFYAML::Data &DI) {
+void DWARFYAML::emitDebugStr(raw_ostream &OS, const DWARFYAML::Data &DI) {
for (auto Str : DI.DebugStrings) {
OS.write(Str.data(), Str.size());
OS.write('\0');
}
}
-void DWARFYAML::EmitDebugAbbrev(raw_ostream &OS, const DWARFYAML::Data &DI) {
+void DWARFYAML::emitDebugAbbrev(raw_ostream &OS, const DWARFYAML::Data &DI) {
for (auto AbbrevDecl : DI.AbbrevDecls) {
encodeULEB128(AbbrevDecl.Code, OS);
encodeULEB128(AbbrevDecl.Tag, OS);
@@ -92,7 +92,7 @@ void DWARFYAML::EmitDebugAbbrev(raw_ostream &OS, const DWARFYAML::Data &DI) {
}
}
-void DWARFYAML::EmitDebugAranges(raw_ostream &OS, const DWARFYAML::Data &DI) {
+void DWARFYAML::emitDebugAranges(raw_ostream &OS, const DWARFYAML::Data &DI) {
for (auto Range : DI.ARanges) {
auto HeaderStart = OS.tell();
if (Range.Format == dwarf::DWARF64) {
@@ -119,7 +119,7 @@ void DWARFYAML::EmitDebugAranges(raw_ostream &OS, const DWARFYAML::Data &DI) {
}
}
-void DWARFYAML::EmitDebugRanges(raw_ostream &OS, const DWARFYAML::Data &DI) {
+void DWARFYAML::emitDebugRanges(raw_ostream &OS, const DWARFYAML::Data &DI) {
const size_t RangesOffset = OS.tell();
for (auto DebugRanges : DI.DebugRanges) {
const size_t CurrOffset = OS.tell() - RangesOffset;
@@ -138,7 +138,7 @@ void DWARFYAML::EmitDebugRanges(raw_ostream &OS, const DWARFYAML::Data &DI) {
}
}
-void DWARFYAML::EmitPubSection(raw_ostream &OS,
+void DWARFYAML::emitPubSection(raw_ostream &OS,
const DWARFYAML::PubSection &Sect,
bool IsLittleEndian) {
writeInitialLength(Sect.Length, OS, IsLittleEndian);
@@ -220,12 +220,12 @@ class DumpVisitor : public DWARFYAML::ConstVisitor {
};
} // namespace
-void DWARFYAML::EmitDebugInfo(raw_ostream &OS, const DWARFYAML::Data &DI) {
+void DWARFYAML::emitDebugInfo(raw_ostream &OS, const DWARFYAML::Data &DI) {
DumpVisitor Visitor(DI, OS);
Visitor.traverseDebugInfo();
}
-static void EmitFileEntry(raw_ostream &OS, const DWARFYAML::File &File) {
+static void emitFileEntry(raw_ostream &OS, const DWARFYAML::File &File) {
OS.write(File.Name.data(), File.Name.size());
OS.write('\0');
encodeULEB128(File.DirIdx, OS);
@@ -233,7 +233,7 @@ static void EmitFileEntry(raw_ostream &OS, const DWARFYAML::File &File) {
encodeULEB128(File.Length, OS);
}
-void DWARFYAML::EmitDebugLine(raw_ostream &OS, const DWARFYAML::Data &DI) {
+void DWARFYAML::emitDebugLine(raw_ostream &OS, const DWARFYAML::Data &DI) {
for (const auto &LineTable : DI.DebugLines) {
writeInitialLength(LineTable.Length, OS, DI.IsLittleEndian);
uint64_t SizeOfPrologueLength = LineTable.Length.isDWARF64() ? 8 : 4;
@@ -258,7 +258,7 @@ void DWARFYAML::EmitDebugLine(raw_ostream &OS, const DWARFYAML::Data &DI) {
OS.write('\0');
for (auto File : LineTable.Files)
- EmitFileEntry(OS, File);
+ emitFileEntry(OS, File);
OS.write('\0');
for (auto Op : LineTable.Opcodes) {
@@ -273,7 +273,7 @@ void DWARFYAML::EmitDebugLine(raw_ostream &OS, const DWARFYAML::Data &DI) {
DI.IsLittleEndian);
break;
case dwarf::DW_LNE_define_file:
- EmitFileEntry(OS, Op.FileEntry);
+ emitFileEntry(OS, Op.FileEntry);
break;
case dwarf::DW_LNE_end_sequence:
break;
@@ -319,7 +319,7 @@ void DWARFYAML::EmitDebugLine(raw_ostream &OS, const DWARFYAML::Data &DI) {
using EmitFuncType = void (*)(raw_ostream &, const DWARFYAML::Data &);
static void
-EmitDebugSectionImpl(const DWARFYAML::Data &DI, EmitFuncType EmitFunc,
+emitDebugSectionImpl(const DWARFYAML::Data &DI, EmitFuncType EmitFunc,
StringRef Sec,
StringMap<std::unique_ptr<MemoryBuffer>> &OutputBuffers) {
std::string Data;
@@ -375,7 +375,7 @@ class DIEFixupVisitor : public DWARFYAML::Visitor {
} // namespace
Expected<StringMap<std::unique_ptr<MemoryBuffer>>>
-DWARFYAML::EmitDebugSections(StringRef YAMLString, bool ApplyFixups,
+DWARFYAML::emitDebugSections(StringRef YAMLString, bool ApplyFixups,
bool IsLittleEndian) {
yaml::Input YIn(YAMLString);
@@ -391,17 +391,17 @@ DWARFYAML::EmitDebugSections(StringRef YAMLString, bool ApplyFixups,
}
StringMap<std::unique_ptr<MemoryBuffer>> DebugSections;
- EmitDebugSectionImpl(DI, &DWARFYAML::EmitDebugInfo, "debug_info",
+ emitDebugSectionImpl(DI, &DWARFYAML::emitDebugInfo, "debug_info",
DebugSections);
- EmitDebugSectionImpl(DI, &DWARFYAML::EmitDebugLine, "debug_line",
+ emitDebugSectionImpl(DI, &DWARFYAML::emitDebugLine, "debug_line",
DebugSections);
- EmitDebugSectionImpl(DI, &DWARFYAML::EmitDebugStr, "debug_str",
+ emitDebugSectionImpl(DI, &DWARFYAML::emitDebugStr, "debug_str",
DebugSections);
- EmitDebugSectionImpl(DI, &DWARFYAML::EmitDebugAbbrev, "debug_abbrev",
+ emitDebugSectionImpl(DI, &DWARFYAML::emitDebugAbbrev, "debug_abbrev",
DebugSections);
- EmitDebugSectionImpl(DI, &DWARFYAML::EmitDebugAranges, "debug_aranges",
+ emitDebugSectionImpl(DI, &DWARFYAML::emitDebugAranges, "debug_aranges",
DebugSections);
- EmitDebugSectionImpl(DI, &DWARFYAML::EmitDebugRanges, "debug_ranges",
+ emitDebugSectionImpl(DI, &DWARFYAML::emitDebugRanges, "debug_ranges",
DebugSections);
return std::move(DebugSections);
}
diff --git a/llvm/lib/ObjectYAML/ELFEmitter.cpp b/llvm/lib/ObjectYAML/ELFEmitter.cpp
index 16cb3c75c62e..71fa798d7e2e 100644
--- a/llvm/lib/ObjectYAML/ELFEmitter.cpp
+++ b/llvm/lib/ObjectYAML/ELFEmitter.cpp
@@ -849,11 +849,11 @@ uint64_t emitDWARF(typename ELFT::Shdr &SHeader, StringRef Name,
const DWARFYAML::Data &DWARF, raw_ostream &OS) {
uint64_t BeginOffset = OS.tell();
if (Name == ".debug_str")
- DWARFYAML::EmitDebugStr(OS, DWARF);
+ DWARFYAML::emitDebugStr(OS, DWARF);
else if (Name == ".debug_aranges")
- DWARFYAML::EmitDebugAranges(OS, DWARF);
+ DWARFYAML::emitDebugAranges(OS, DWARF);
else if (Name == ".debug_ranges")
- DWARFYAML::EmitDebugRanges(OS, DWARF);
+ DWARFYAML::emitDebugRanges(OS, DWARF);
else
llvm_unreachable("unexpected emitDWARF() call");
diff --git a/llvm/lib/ObjectYAML/MachOEmitter.cpp b/llvm/lib/ObjectYAML/MachOEmitter.cpp
index c9bca43a4ef9..70f8e38b677c 100644
--- a/llvm/lib/ObjectYAML/MachOEmitter.cpp
+++ b/llvm/lib/ObjectYAML/MachOEmitter.cpp
@@ -287,25 +287,25 @@ Error MachOWriter::writeSectionData(raw_ostream &OS) {
"wrote too much data somewhere, section offsets don't line up");
if (0 == strncmp(&Sec.segname[0], "__DWARF", 16)) {
if (0 == strncmp(&Sec.sectname[0], "__debug_str", 16)) {
- DWARFYAML::EmitDebugStr(OS, Obj.DWARF);
+ DWARFYAML::emitDebugStr(OS, Obj.DWARF);
} else if (0 == strncmp(&Sec.sectname[0], "__debug_abbrev", 16)) {
- DWARFYAML::EmitDebugAbbrev(OS, Obj.DWARF);
+ DWARFYAML::emitDebugAbbrev(OS, Obj.DWARF);
} else if (0 == strncmp(&Sec.sectname[0], "__debug_aranges", 16)) {
- DWARFYAML::EmitDebugAranges(OS, Obj.DWARF);
+ DWARFYAML::emitDebugAranges(OS, Obj.DWARF);
} else if (0 == strncmp(&Sec.sectname[0], "__debug_ranges", 16)) {
- DWARFYAML::EmitDebugRanges(OS, Obj.DWARF);
+ DWARFYAML::emitDebugRanges(OS, Obj.DWARF);
} else if (0 == strncmp(&Sec.sectname[0], "__debug_pubnames", 16)) {
if (Obj.DWARF.PubNames)
- DWARFYAML::EmitPubSection(OS, *Obj.DWARF.PubNames,
+ DWARFYAML::emitPubSection(OS, *Obj.DWARF.PubNames,
Obj.IsLittleEndian);
} else if (0 == strncmp(&Sec.sectname[0], "__debug_pubtypes", 16)) {
if (Obj.DWARF.PubTypes)
- DWARFYAML::EmitPubSection(OS, *Obj.DWARF.PubTypes,
+ DWARFYAML::emitPubSection(OS, *Obj.DWARF.PubTypes,
Obj.IsLittleEndian);
} else if (0 == strncmp(&Sec.sectname[0], "__debug_info", 16)) {
- DWARFYAML::EmitDebugInfo(OS, Obj.DWARF);
+ DWARFYAML::emitDebugInfo(OS, Obj.DWARF);
} else if (0 == strncmp(&Sec.sectname[0], "__debug_line", 16)) {
- DWARFYAML::EmitDebugLine(OS, Obj.DWARF);
+ DWARFYAML::emitDebugLine(OS, Obj.DWARF);
}
continue;
diff --git a/llvm/unittests/DebugInfo/DWARF/DWARFDebugInfoTest.cpp b/llvm/unittests/DebugInfo/DWARF/DWARFDebugInfoTest.cpp
index c4a466fdfe08..7331d9c95df8 100644
--- a/llvm/unittests/DebugInfo/DWARF/DWARFDebugInfoTest.cpp
+++ b/llvm/unittests/DebugInfo/DWARF/DWARFDebugInfoTest.cpp
@@ -1379,7 +1379,7 @@ TEST(DWARFDebugInfo, TestEmptyChildren) {
" - AbbrCode: 0x00000000\n"
" Values:\n";
- auto ErrOrSections = DWARFYAML::EmitDebugSections(StringRef(yamldata), true);
+ auto ErrOrSections = DWARFYAML::emitDebugSections(StringRef(yamldata), true);
ASSERT_TRUE((bool)ErrOrSections);
std::unique_ptr<DWARFContext> DwarfContext =
DWARFContext::create(*ErrOrSections, 8);
@@ -1918,7 +1918,7 @@ TEST(DWARFDebugInfo, TestDwarfVerifyInvalidCURef) {
- AbbrCode: 0x00000000
Values:
)";
- auto ErrOrSections = DWARFYAML::EmitDebugSections(StringRef(yamldata));
+ auto ErrOrSections = DWARFYAML::emitDebugSections(StringRef(yamldata));
ASSERT_TRUE((bool)ErrOrSections);
std::unique_ptr<DWARFContext> DwarfContext =
DWARFContext::create(*ErrOrSections, 8);
@@ -1967,7 +1967,7 @@ TEST(DWARFDebugInfo, TestDwarfVerifyInvalidRefAddr) {
- AbbrCode: 0x00000000
Values:
)";
- auto ErrOrSections = DWARFYAML::EmitDebugSections(StringRef(yamldata));
+ auto ErrOrSections = DWARFYAML::emitDebugSections(StringRef(yamldata));
ASSERT_TRUE((bool)ErrOrSections);
std::unique_ptr<DWARFContext> DwarfContext =
DWARFContext::create(*ErrOrSections, 8);
@@ -2004,7 +2004,7 @@ TEST(DWARFDebugInfo, TestDwarfVerifyInvalidRanges) {
- Value: 0x0000000000001000
)";
- auto ErrOrSections = DWARFYAML::EmitDebugSections(StringRef(yamldata));
+ auto ErrOrSections = DWARFYAML::emitDebugSections(StringRef(yamldata));
ASSERT_TRUE((bool)ErrOrSections);
std::unique_ptr<DWARFContext> DwarfContext =
DWARFContext::create(*ErrOrSections, 8);
@@ -2043,7 +2043,7 @@ TEST(DWARFDebugInfo, TestDwarfVerifyInvalidRnglists) {
- Value: 0x0000000000001000
)";
- auto ErrOrSections = DWARFYAML::EmitDebugSections(StringRef(yamldata));
+ auto ErrOrSections = DWARFYAML::emitDebugSections(StringRef(yamldata));
ASSERT_TRUE((bool)ErrOrSections);
std::unique_ptr<DWARFContext> DwarfContext =
DWARFContext::create(*ErrOrSections, 8);
@@ -2080,7 +2080,7 @@ TEST(DWARFDebugInfo, TestDwarfVerifyInvalidStmtList) {
- Value: 0x0000000000001000
)";
- auto ErrOrSections = DWARFYAML::EmitDebugSections(StringRef(yamldata));
+ auto ErrOrSections = DWARFYAML::emitDebugSections(StringRef(yamldata));
ASSERT_TRUE((bool)ErrOrSections);
std::unique_ptr<DWARFContext> DwarfContext =
DWARFContext::create(*ErrOrSections, 8);
@@ -2113,7 +2113,7 @@ TEST(DWARFDebugInfo, TestDwarfVerifyInvalidStrp) {
Values:
- Value: 0x0000000000001234
)";
- auto ErrOrSections = DWARFYAML::EmitDebugSections(StringRef(yamldata));
+ auto ErrOrSections = DWARFYAML::emitDebugSections(StringRef(yamldata));
ASSERT_TRUE((bool)ErrOrSections);
std::unique_ptr<DWARFContext> DwarfContext =
DWARFContext::create(*ErrOrSections, 8);
@@ -2161,7 +2161,7 @@ TEST(DWARFDebugInfo, TestDwarfVerifyInvalidRefAddrBetween) {
- AbbrCode: 0x00000000
Values:
)";
- auto ErrOrSections = DWARFYAML::EmitDebugSections(StringRef(yamldata));
+ auto ErrOrSections = DWARFYAML::emitDebugSections(StringRef(yamldata));
ASSERT_TRUE((bool)ErrOrSections);
std::unique_ptr<DWARFContext> DwarfContext =
DWARFContext::create(*ErrOrSections, 8);
@@ -2232,7 +2232,7 @@ TEST(DWARFDebugInfo, TestDwarfVerifyInvalidLineSequence) {
SubOpcode: DW_LNE_end_sequence
Data: 18446744073709551600
)";
- auto ErrOrSections = DWARFYAML::EmitDebugSections(yamldata);
+ auto ErrOrSections = DWARFYAML::emitDebugSections(yamldata);
ASSERT_TRUE((bool)ErrOrSections);
std::unique_ptr<DWARFContext> DwarfContext =
DWARFContext::create(*ErrOrSections, 8);
@@ -2304,7 +2304,7 @@ TEST(DWARFDebugInfo, TestDwarfVerifyInvalidLineFileIndex) {
SubOpcode: DW_LNE_end_sequence
Data: 5
)";
- auto ErrOrSections = DWARFYAML::EmitDebugSections(yamldata);
+ auto ErrOrSections = DWARFYAML::emitDebugSections(yamldata);
ASSERT_TRUE((bool)ErrOrSections);
std::unique_ptr<DWARFContext> DwarfContext =
DWARFContext::create(*ErrOrSections, 8);
@@ -2376,7 +2376,7 @@ TEST(DWARFDebugInfo, TestDwarfVerifyInvalidLineTablePorlogueDirIndex) {
SubOpcode: DW_LNE_end_sequence
Data: 1
)";
- auto ErrOrSections = DWARFYAML::EmitDebugSections(yamldata);
+ auto ErrOrSections = DWARFYAML::emitDebugSections(yamldata);
ASSERT_TRUE((bool)ErrOrSections);
std::unique_ptr<DWARFContext> DwarfContext =
DWARFContext::create(*ErrOrSections, 8);
@@ -2453,7 +2453,7 @@ TEST(DWARFDebugInfo, TestDwarfVerifyDuplicateFileWarning) {
SubOpcode: DW_LNE_end_sequence
Data: 2
)";
- auto ErrOrSections = DWARFYAML::EmitDebugSections(yamldata);
+ auto ErrOrSections = DWARFYAML::emitDebugSections(yamldata);
ASSERT_TRUE((bool)ErrOrSections);
std::unique_ptr<DWARFContext> DwarfContext =
DWARFContext::create(*ErrOrSections, 8);
@@ -2535,7 +2535,7 @@ TEST(DWARFDebugInfo, TestDwarfVerifyCUDontShareLineTable) {
SubOpcode: DW_LNE_end_sequence
Data: 256
)";
- auto ErrOrSections = DWARFYAML::EmitDebugSections(yamldata);
+ auto ErrOrSections = DWARFYAML::emitDebugSections(yamldata);
ASSERT_TRUE((bool)ErrOrSections);
std::unique_ptr<DWARFContext> DwarfContext =
DWARFContext::create(*ErrOrSections, 8);
@@ -2626,7 +2626,7 @@ TEST(DWARFDebugInfo, TestDwarfVerifyCURangesIncomplete) {
- AbbrCode: 0x00000000
Values:
)";
- auto ErrOrSections = DWARFYAML::EmitDebugSections(yamldata);
+ auto ErrOrSections = DWARFYAML::emitDebugSections(yamldata);
ASSERT_TRUE((bool)ErrOrSections);
std::unique_ptr<DWARFContext> DwarfContext =
DWARFContext::create(*ErrOrSections, 8);
@@ -2691,7 +2691,7 @@ TEST(DWARFDebugInfo, TestDwarfVerifyLexicalBlockRanges) {
- AbbrCode: 0x00000000
Values:
)";
- auto ErrOrSections = DWARFYAML::EmitDebugSections(yamldata);
+ auto ErrOrSections = DWARFYAML::emitDebugSections(yamldata);
ASSERT_TRUE((bool)ErrOrSections);
std::unique_ptr<DWARFContext> DwarfContext =
DWARFContext::create(*ErrOrSections, 8);
@@ -2748,7 +2748,7 @@ TEST(DWARFDebugInfo, TestDwarfVerifyOverlappingFunctionRanges) {
- AbbrCode: 0x00000000
Values:
)";
- auto ErrOrSections = DWARFYAML::EmitDebugSections(yamldata);
+ auto ErrOrSections = DWARFYAML::emitDebugSections(yamldata);
ASSERT_TRUE((bool)ErrOrSections);
std::unique_ptr<DWARFContext> DwarfContext =
DWARFContext::create(*ErrOrSections, 8);
@@ -2822,7 +2822,7 @@ TEST(DWARFDebugInfo, TestDwarfVerifyOverlappingLexicalBlockRanges) {
- AbbrCode: 0x00000000
Values:
)";
- auto ErrOrSections = DWARFYAML::EmitDebugSections(yamldata);
+ auto ErrOrSections = DWARFYAML::emitDebugSections(yamldata);
ASSERT_TRUE((bool)ErrOrSections);
std::unique_ptr<DWARFContext> DwarfContext =
DWARFContext::create(*ErrOrSections, 8);
@@ -2872,7 +2872,7 @@ TEST(DWARFDebugInfo, TestDwarfVerifyInvalidDIERange) {
- AbbrCode: 0x00000000
Values:
)";
- auto ErrOrSections = DWARFYAML::EmitDebugSections(yamldata);
+ auto ErrOrSections = DWARFYAML::emitDebugSections(yamldata);
ASSERT_TRUE((bool)ErrOrSections);
std::unique_ptr<DWARFContext> DwarfContext =
DWARFContext::create(*ErrOrSections, 8);
@@ -2936,7 +2936,7 @@ TEST(DWARFDebugInfo, TestDwarfVerifyElidedDoesntFail) {
- AbbrCode: 0x00000000
Values:
)";
- auto ErrOrSections = DWARFYAML::EmitDebugSections(yamldata);
+ auto ErrOrSections = DWARFYAML::emitDebugSections(yamldata);
ASSERT_TRUE((bool)ErrOrSections);
std::unique_ptr<DWARFContext> DwarfContext =
DWARFContext::create(*ErrOrSections, 8);
@@ -3003,7 +3003,7 @@ TEST(DWARFDebugInfo, TestDwarfVerifyNestedFunctions) {
- AbbrCode: 0x00000000
Values:
)";
- auto ErrOrSections = DWARFYAML::EmitDebugSections(yamldata);
+ auto ErrOrSections = DWARFYAML::emitDebugSections(yamldata);
ASSERT_TRUE((bool)ErrOrSections);
std::unique_ptr<DWARFContext> DwarfContext =
DWARFContext::create(*ErrOrSections, 8);
diff --git a/llvm/unittests/DebugInfo/DWARF/DWARFDieTest.cpp b/llvm/unittests/DebugInfo/DWARF/DWARFDieTest.cpp
index ad00537c2a4a..cd82c5612441 100644
--- a/llvm/unittests/DebugInfo/DWARF/DWARFDieTest.cpp
+++ b/llvm/unittests/DebugInfo/DWARF/DWARFDieTest.cpp
@@ -50,7 +50,7 @@ TEST(DWARFDie, getLocations) {
- Value: 25
)";
Expected<StringMap<std::unique_ptr<MemoryBuffer>>> Sections =
- DWARFYAML::EmitDebugSections(StringRef(yamldata), /*ApplyFixups=*/true,
+ DWARFYAML::emitDebugSections(StringRef(yamldata), /*ApplyFixups=*/true,
/*IsLittleEndian=*/true);
ASSERT_THAT_EXPECTED(Sections, Succeeded());
std::vector<uint8_t> Loclists{
diff --git a/llvm/unittests/DebugInfo/GSYM/GSYMTest.cpp b/llvm/unittests/DebugInfo/GSYM/GSYMTest.cpp
index 8a9afc14e09e..2a8a4d9c3ae2 100644
--- a/llvm/unittests/DebugInfo/GSYM/GSYMTest.cpp
+++ b/llvm/unittests/DebugInfo/GSYM/GSYMTest.cpp
@@ -1457,7 +1457,7 @@ TEST(GSYMTest, TestDWARFFunctionWithAddresses) {
- AbbrCode: 0x00000000
Values:
)";
- auto ErrOrSections = DWARFYAML::EmitDebugSections(yamldata);
+ auto ErrOrSections = DWARFYAML::emitDebugSections(yamldata);
ASSERT_THAT_EXPECTED(ErrOrSections, Succeeded());
std::unique_ptr<DWARFContext> DwarfContext =
DWARFContext::create(*ErrOrSections, 8);
@@ -1537,7 +1537,7 @@ TEST(GSYMTest, TestDWARFFunctionWithAddressAndOffset) {
- AbbrCode: 0x00000000
Values:
)";
- auto ErrOrSections = DWARFYAML::EmitDebugSections(yamldata);
+ auto ErrOrSections = DWARFYAML::emitDebugSections(yamldata);
ASSERT_THAT_EXPECTED(ErrOrSections, Succeeded());
std::unique_ptr<DWARFContext> DwarfContext =
DWARFContext::create(*ErrOrSections, 8);
@@ -1649,7 +1649,7 @@ TEST(GSYMTest, TestDWARFStructMethodNoMangled) {
- AbbrCode: 0x00000000
Values:
)";
- auto ErrOrSections = DWARFYAML::EmitDebugSections(yamldata);
+ auto ErrOrSections = DWARFYAML::emitDebugSections(yamldata);
ASSERT_THAT_EXPECTED(ErrOrSections, Succeeded());
std::unique_ptr<DWARFContext> DwarfContext =
DWARFContext::create(*ErrOrSections, 8);
@@ -1753,7 +1753,7 @@ TEST(GSYMTest, TestDWARFTextRanges) {
Values:
)";
- auto ErrOrSections = DWARFYAML::EmitDebugSections(yamldata);
+ auto ErrOrSections = DWARFYAML::emitDebugSections(yamldata);
ASSERT_THAT_EXPECTED(ErrOrSections, Succeeded());
std::unique_ptr<DWARFContext> DwarfContext =
DWARFContext::create(*ErrOrSections, 8);
@@ -1932,7 +1932,7 @@ TEST(GSYMTest, TestDWARFInlineInfo) {
SubOpcode: DW_LNE_end_sequence
Data: 3584
)";
- auto ErrOrSections = DWARFYAML::EmitDebugSections(yamldata);
+ auto ErrOrSections = DWARFYAML::emitDebugSections(yamldata);
ASSERT_THAT_EXPECTED(ErrOrSections, Succeeded());
std::unique_ptr<DWARFContext> DwarfContext =
DWARFContext::create(*ErrOrSections, 8);
@@ -2196,7 +2196,7 @@ TEST(GSYMTest, TestDWARFNoLines) {
SubOpcode: DW_LNE_end_sequence
Data: 0
)";
- auto ErrOrSections = DWARFYAML::EmitDebugSections(yamldata);
+ auto ErrOrSections = DWARFYAML::emitDebugSections(yamldata);
ASSERT_THAT_EXPECTED(ErrOrSections, Succeeded());
std::unique_ptr<DWARFContext> DwarfContext =
DWARFContext::create(*ErrOrSections, 8);
@@ -2379,7 +2379,7 @@ TEST(GSYMTest, TestDWARFDeadStripAddr4) {
- AbbrCode: 0x00000000
Values: []
)";
- auto ErrOrSections = DWARFYAML::EmitDebugSections(yamldata);
+ auto ErrOrSections = DWARFYAML::emitDebugSections(yamldata);
ASSERT_THAT_EXPECTED(ErrOrSections, Succeeded());
std::unique_ptr<DWARFContext> DwarfContext =
DWARFContext::create(*ErrOrSections, 4);
@@ -2522,7 +2522,7 @@ TEST(GSYMTest, TestDWARFDeadStripAddr8) {
- AbbrCode: 0x00000000
Values: []
)";
- auto ErrOrSections = DWARFYAML::EmitDebugSections(yamldata);
+ auto ErrOrSections = DWARFYAML::emitDebugSections(yamldata);
ASSERT_THAT_EXPECTED(ErrOrSections, Succeeded());
std::unique_ptr<DWARFContext> DwarfContext =
DWARFContext::create(*ErrOrSections, 8);
More information about the llvm-commits
mailing list