Revisions r214433 and r215967 changed two interfaces slightly, in a way that keeps IntelJITEventListener from compiling. The patch fixes these problems.
Details
Details
Diff Detail
Diff Detail
Event Timeline
tools/llvm-jitlistener/llvm-jitlistener.cpp | ||
---|---|---|
148 | This looks odd. It seems TheModule is only used in InitEE. Could you make it a local variable: std::unique_ptr<Module> TheModule( ParseIRFile(IRFile, Err, Context)); and std::move it here? |
Comment Actions
Updated per Rafael Ávila de Espíndola's comments to use std::unique_ptr more naturally.
This looks odd.
It seems TheModule is only used in InitEE. Could you make it a local variable:
std::unique_ptr<Module> TheModule( ParseIRFile(IRFile, Err, Context));
and std::move it here?