mirror of
https://github.com/revng/revng
synced 2026-06-21 14:07:57 +00:00
Update VariableManager's DataLayout after linking
This commit is contained in:
@@ -762,6 +762,8 @@ void CodeGenerator::translate(uint64_t VirtualAddress,
|
||||
Linker::LinkOnlyNeeded);
|
||||
assert(!Result && "Linking failed");
|
||||
|
||||
Variables.setDataLayout(&TheModule->getDataLayout());
|
||||
|
||||
legacy::PassManager PM;
|
||||
PM.add(createSROAPass());
|
||||
PM.add(new CpuLoopExitPass(&Variables));
|
||||
|
||||
Reference in New Issue
Block a user