From 0ec48e0ec92644d5b456d092e7634495b39d61bf Mon Sep 17 00:00:00 2001 From: Tillmann Karras Date: Thu, 12 Feb 2015 01:36:29 +0100 Subject: JitRegister: fix VTune integration --- Source/Core/Common/JitRegister.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'Source/Core/Common/JitRegister.cpp') diff --git a/Source/Core/Common/JitRegister.cpp b/Source/Core/Common/JitRegister.cpp index 964a88b214..c99b27e73b 100644 --- a/Source/Core/Common/JitRegister.cpp +++ b/Source/Core/Common/JitRegister.cpp @@ -26,7 +26,6 @@ #if defined USE_VTUNE #include -#pragma comment(lib, "libittnotify.lib") #pragma comment(lib, "jitprofiling.lib") #endif @@ -89,12 +88,9 @@ void RegisterV(const void* base_address, u32 code_size, #ifdef USE_VTUNE iJIT_Method_Load jmethod = {0}; jmethod.method_id = iJIT_GetNewMethodID(); - jmethod.class_file_name = ""; - jmethod.source_file_name = __FILE__; - jmethod.method_load_address = base_address; + jmethod.method_load_address = const_cast(base_address); jmethod.method_size = code_size; - jmethod.line_number_size = 0; - jmethod.method_name = symbol_name.data(); + jmethod.method_name = const_cast(symbol_name.data()); iJIT_NotifyEvent(iJVM_EVENT_TYPE_METHOD_LOAD_FINISHED, (void*)&jmethod); #endif -- cgit v1.2.3