report_manager: store report -> program mapping

This commit is contained in:
Justin Viiret
2016-04-18 14:20:45 +10:00
committed by Matthew Barr
parent fd7f30a5b5
commit f40aa6bd40
3 changed files with 26 additions and 2 deletions

View File

@@ -3771,6 +3771,7 @@ u32 buildReportPrograms(RoseBuildImpl &build, build_context &bc) {
program = flattenProgram({program});
applyFinalSpecialisation(program);
programs[id] = writeProgram(bc, program);
build.rm.setProgramOffset(id, programs[id]);
DEBUG_PRINTF("program for report %u @ %u (%zu instructions)\n", id,
programs.back(), program.size());
}