gallivm: Only build lp_profile() body when PROFILE is defined
[mesa.git] / src / gallium / auxiliary / gallivm / lp_bld_debug.cpp
index 9a85248018c07acd9612264fa99e319807086ba9..405e6486f7abad84670622ab7ba2d3f97ac97996 100644 (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;