Serialize jump target reasons after FBD

Serialization (in the form of the `revamb.jt.reasons` metadata) of the
reason why a certain address is a jump target has been moved from
`JumpTargetManager::finalizeJumpTargets` to a new function
(`JumpTargetManager::createJTReasonMD`) which is invoked after the
function boundaries detection algorithm has been run.
This commit is contained in:
Alessandro Di Federico
2017-08-12 15:15:29 +02:00
parent ce09875c36
commit 91773b41e2
2 changed files with 3 additions and 0 deletions
+2
View File
@@ -921,6 +921,8 @@ void CodeGenerator::translate(uint64_t VirtualAddress) {
FPM.run(*MainFunction);
}
JumpTargets.createJTReasonMD();
JumpTargets.noReturn().cleanup();
Translator.finalizeNewPCMarkers(CoveragePath);