diff options
author | Tom Stellard <[email protected]> | 2015-05-27 16:51:43 -0700 |
---|---|---|
committer | Tom Stellard <[email protected]> | 2015-06-12 21:02:00 -0700 |
commit | 3e7412233739c882548f50fe01d9f6c5f0dd4bbb (patch) | |
tree | 64cde675f4525545d15405b0ea7d332324cf9c50 /src | |
parent | faf7670ee86253cb7bf9422bf7937a0a63f4956f (diff) |
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 <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/auxiliary/gallivm/lp_bld_debug.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp b/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp index 9a85248018c..405e6486f7a 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp +++ b/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp @@ -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; |