Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/ccc/elf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,9 @@ Result<void> ElfFile::import_symbol_sections(
Result<void> ElfFile::import_link_once_sections(
SymbolDatabase& database, const SymbolGroup& group, u32 importer_flags, const DemanglerFunctions& demangler) const
{
// Parse .gnu.linkonce.* section names. These are be generated as part of
// vague linking e.g. for template instantiations, and can be left in the
// final binary if the linker script doesn't have proper support for them.
// Parse .gnu.linkonce.* section names. These are generated as part of vague
// linking e.g. for template instantiations, and can be left in the final
// binary if the linker script doesn't have proper support for them.
for (const ElfSection& section : sections) {
std::optional<ElfLinkOnceSection> link_once = parse_link_once_section_name(section.name);
if (!link_once.has_value()) {
Expand Down
2 changes: 1 addition & 1 deletion src/ccc/stabs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ static Result<std::unique_ptr<StabsType>> parse_stabs_type(const char*& input)
STABS_DEBUG_PRINTF("union {\n");

std::optional<s64> union_size = parse_number_s64(input);
CCC_CHECK(union_size.has_value(), "Failed to parse struct size.");
CCC_CHECK(union_size.has_value(), "Failed to parse union size.");
union_type->size = *union_size;

auto fields = parse_field_list(input);
Expand Down
1 change: 1 addition & 0 deletions src/ccc/symbol_table.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ Result<void> MdebugSymbolTable::print_symbols(FILE* out, u32 flags) const

return Result<void>();
}

// *****************************************************************************

DwarfSymbolTable::DwarfSymbolTable(std::span<const u8> debug, std::span<const u8> line)
Expand Down
Loading