This is an archive of the discontinued LLVM Phabricator instance.

IntelJITEventListener updates to fix breaks by recent changes to EngineBuilder and DIContext
ClosedPublic

Authored by ArchDRobison on Aug 19 2014, 12:35 PM.

Details

Reviewers
rafael
Summary

Revisions r214433 and r215967 changed two interfaces slightly, in a way that keeps IntelJITEventListener from compiling. The patch fixes these problems.

Diff Detail

Event Timeline

ArchDRobison retitled this revision from to IntelJITEventListener updates to fix breaks by recent changes to EngineBuilder and DIContext.
ArchDRobison updated this object.
ArchDRobison edited the test plan for this revision. (Show Details)
ArchDRobison added a subscriber: Unknown Object (MLST).
rafael added inline comments.
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?

Updated per Rafael Ávila de Espíndola's comments to use std::unique_ptr more naturally.

rafael accepted this revision.Aug 20 2014, 2:59 PM
rafael added a reviewer: rafael.

LGTM with the unit test updated too.

This revision is now accepted and ready to land.Aug 20 2014, 2:59 PM
Eugene.Zelenko added a subscriber: Eugene.Zelenko.

Committed in rL216159.