Added CMake build system, fixed warnings on clang, removed VS solution/projects

This commit is contained in:
Mr-Wiseguy 2024-04-20 21:05:50 -04:00
parent 32841e85b4
commit 0f813247a1
13 changed files with 117 additions and 1062 deletions

View file

@ -3,6 +3,7 @@
#include <unordered_set>
#include <span>
#include <filesystem>
#include <optional>
#include "rabbitizer.hpp"
#include "elfio/elfio.hpp"
@ -611,7 +612,8 @@ bool read_symbols(RecompPort::Context& context, const ELFIO::elfio& elf_file, EL
std::move(name),
0,
true,
reimplemented
reimplemented,
false
);
continue;
}

View file

@ -232,6 +232,8 @@ bool process_instruction(const RecompPort::Context& context, const RecompPort::C
signed_imm_string = "(int16_t)" + unsigned_imm_string;
reloc_handled = true;
break;
default:
throw std::runtime_error(fmt::format("Unexpected reloc type {} in {}\n", static_cast<int>(reloc_type), func.name));
}
}