On Tue, Mar 13, 2012 at 11:50 PM, Vinson Lee <v...@freedesktop.org> wrote: > llvm-3.1svn r15620 refactored the OProfile profiling code. > createOProfileJITEventListener was moved from the llvm namespace to the > llvm::JITEventListener namespace. > > Signed-off-by: Vinson Lee <v...@freedesktop.org> > --- > src/gallium/auxiliary/gallivm/lp_bld_misc.cpp | 4 ++++ > 1 files changed, 4 insertions(+), 0 deletions(-) > > diff --git a/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp > b/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp > index fe7616b..68f8808 100644 > --- a/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp > +++ b/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp > @@ -62,7 +62,11 @@ > extern "C" void > lp_register_oprofile_jit_event_listener(LLVMExecutionEngineRef EE) > { > +#if HAVE_LLVM >= 0x0301 > + > llvm::unwrap(EE)->RegisterJITEventListener(llvm::JITEventListener::createOProfileJITEventListener()); > +#else > > llvm::unwrap(EE)->RegisterJITEventListener(llvm::createOProfileJITEventListener()); > +#endif > } >
Looks OK to me. Reviewed-by: Brian Paul <bri...@vmware.com> _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev