Mesa (master): gallivm: Only build lp_profile() body when PROFILE is defined
Tom Stellard
tstellar at kemper.freedesktop.org
Sat Jun 13 04:07:35 UTC 2015
Module: Mesa
Branch: master
Commit: 3e7412233739c882548f50fe01d9f6c5f0dd4bbb
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=3e7412233739c882548f50fe01d9f6c5f0dd4bbb
Author: Tom Stellard <thomas.stellard at amd.com>
Date: Wed May 27 16:51:43 2015 -0700
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 at vmware.com>
---
src/gallium/auxiliary/gallivm/lp_bld_debug.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp b/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp
index 9a85248..405e648 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;
More information about the mesa-commit
mailing list