[PATCH] D17254: Fix some -Wundef warnings in include/llvm/ExecutionEngine/JITEventListener.h

Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 14 13:54:15 PDT 2016


This revision was automatically updated to reflect the committed changes.
Closed by commit rL263487: [JITEventListener] Fix some -Wundef warnings (authored by kfischer).

Changed prior to commit:
  http://reviews.llvm.org/D17254?vs=47949&id=50644#toc

Repository:
  rL LLVM

http://reviews.llvm.org/D17254

Files:
  llvm/trunk/include/llvm/ExecutionEngine/JITEventListener.h

Index: llvm/trunk/include/llvm/ExecutionEngine/JITEventListener.h
===================================================================
--- llvm/trunk/include/llvm/ExecutionEngine/JITEventListener.h
+++ llvm/trunk/include/llvm/ExecutionEngine/JITEventListener.h
@@ -81,7 +81,7 @@
   // 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 @@
   }
 #endif // USE_INTEL_JITEVENTS
 
-#if LLVM_USE_OPROFILE
+#if defined(LLVM_USE_OPROFILE) && LLVM_USE_OPROFILE
   // Construct an OProfileJITEventListener
   static JITEventListener *createOProfileJITEventListener();
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D17254.50644.patch
Type: text/x-patch
Size: 842 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160314/e05750dc/attachment.bin>


More information about the llvm-commits mailing list