mirror of
https://github.com/revng/revng
synced 2026-06-21 14:07:57 +00:00
Ensure existence of abort since the beginning
This commit is contained in:
@@ -73,6 +73,11 @@ CodeGenerator::CodeGenerator(std::string Input,
|
||||
|
||||
BinaryHandle = std::move(BinaryOrErr.get());
|
||||
|
||||
// Provide an abort declaration
|
||||
TheModule->getOrInsertFunction("abort",
|
||||
FunctionType::get(Type::getVoidTy(Context),
|
||||
false));
|
||||
|
||||
// We only support ELF for now
|
||||
auto *TheBinary = cast<object::ObjectFile>(BinaryHandle.getBinary());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user