gallivm: Only build lp_profile() body when PROFILE is defined

The only use of lp_profile() is wrapped in #if defined(PROFILE),
so there is no reason to build it unless this macro is defined.

Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
This commit is contained in:
Tom Stellard 2015-05-27 16:51:43 -07:00
parent faf7670ee8
commit 3e74122337
1 changed files with 1 additions and 1 deletions

View File

@ -246,7 +246,7 @@ lp_disassemble(LLVMValueRef func, const void *code) {
extern "C" void
lp_profile(LLVMValueRef func, const void *code)
{
#if defined(__linux__) && (defined(DEBUG) || defined(PROFILE))
#if defined(__linux__) && defined(PROFILE)
static boolean first_time = TRUE;
static FILE *perf_map_file = NULL;
static int perf_asm_fd = -1;