diff --git a/llvm/include/llvm/ExecutionEngine/JITEventListener.h b/llvm/include/llvm/ExecutionEngine/JITEventListener.h index c3edec868783..be7c0448bb78 100644 --- a/llvm/include/llvm/ExecutionEngine/JITEventListener.h +++ b/llvm/include/llvm/ExecutionEngine/JITEventListener.h @@ -81,7 +81,7 @@ public: // Get a pointe to the GDB debugger registration listener. static JITEventListener *createGDBRegistrationListener(); -#if LLVM_USE_INTEL_JITEVENTS +#if defined(LLVM_USE_INTEL_JITEVENTS) && LLVM_USE_INTEL_JITEVENTS // Construct an IntelJITEventListener static JITEventListener *createIntelJITEventListener(); @@ -97,7 +97,7 @@ public: } #endif // USE_INTEL_JITEVENTS -#if LLVM_USE_OPROFILE +#if defined(LLVM_USE_OPROFILE) && LLVM_USE_OPROFILE // Construct an OProfileJITEventListener static JITEventListener *createOProfileJITEventListener();