Skip to content

Commit 0288fe7

Browse files
Remove getSizeFromDwarfHeaderAndSkip
This function is not used anywhere and can be safely removed.
1 parent 56f34f6 commit 0288fe7

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
@@ -1726,17 +1726,6 @@ static Expected<size_t> getSizeFromDwarfHeader(BinaryStreamReader &Reader) {
17261726
return Word1;
17271727
}
17281728

1729-
// TODO: Remove
1730-
Expected<size_t>
1731-
mccasformats::v1::getSizeFromDwarfHeaderAndSkip(BinaryStreamReader &Reader) {
1732-
Expected<size_t> Size = getSizeFromDwarfHeader(Reader);
1733-
if (!Size)
1734-
return Size.takeError();
1735-
if (auto E = Reader.skip(*Size))
1736-
return std::move(E);
1737-
return Size;
1738-
}
1739-
17401729
/// Returns the Abbreviation Offset field of a Dwarf Compilation Unit (CU)
17411730
/// contained in CUData, as well as the total number of bytes taken by the CU.
17421731
/// Note: this is different from the length field of the Dwarf header, which

0 commit comments

Comments
 (0)