Skip to content

Commit c38083a

Browse files
Remove getSizeFromDwarfHeaderAndSkip
This function is not used anywhere and can be safely removed. (cherry picked from commit 0288fe7)
1 parent ea6d9dc commit c38083a

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

llvm/lib/MCCAS/MCCASObjectV1.cpp

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1719,17 +1719,6 @@ static Expected<size_t> getSizeFromDwarfHeader(BinaryStreamReader &Reader) {
17191719
return Word1;
17201720
}
17211721

1722-
// TODO: Remove
1723-
Expected<size_t>
1724-
mccasformats::v1::getSizeFromDwarfHeaderAndSkip(BinaryStreamReader &Reader) {
1725-
Expected<size_t> Size = getSizeFromDwarfHeader(Reader);
1726-
if (!Size)
1727-
return Size.takeError();
1728-
if (auto E = Reader.skip(*Size))
1729-
return std::move(E);
1730-
return Size;
1731-
}
1732-
17331722
/// Returns the Abbreviation Offset field of a Dwarf Compilation Unit (CU)
17341723
/// contained in CUData, as well as the total number of bytes taken by the CU.
17351724
/// Note: this is different from the length field of the Dwarf header, which

0 commit comments

Comments
 (0)