]> granicus.if.org Git - llvm/commitdiff
Turn LLVM_USE_OPROFILE into a 0/1 definition.
authorJoerg Sonnenberger <joerg@bec.de>
Fri, 30 Sep 2016 19:55:37 +0000 (19:55 +0000)
committerJoerg Sonnenberger <joerg@bec.de>
Fri, 30 Sep 2016 19:55:37 +0000 (19:55 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@282909 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Config/config.h.cmake
include/llvm/Config/llvm-config.h.cmake
include/llvm/ExecutionEngine/JITEventListener.h

index 9d326b6062b4c3f1ed7eb9b93c387c9833470b13..1288ee0a43e4c82cdc10e997afecb739e37fbf33 100644 (file)
 #cmakedefine01 LLVM_USE_INTEL_JITEVENTS
 
 /* Define if we have the oprofile JIT-support library */
-#cmakedefine LLVM_USE_OPROFILE 1
+#cmakedefine01 LLVM_USE_OPROFILE
 
 /* Major version of the LLVM API */
 #define LLVM_VERSION_MAJOR ${LLVM_VERSION_MAJOR}
index 27e6a0fe90261b48d5aa02924a64b5ca588e8cbb..6117c0e3547c078c47dff9bcaf327e6e471760fa 100644 (file)
@@ -84,7 +84,7 @@
 #cmakedefine01 LLVM_USE_INTEL_JITEVENTS
 
 /* Define if we have the oprofile JIT-support library */
-#cmakedefine LLVM_USE_OPROFILE 1
+#cmakedefine01 LLVM_USE_OPROFILE
 
 /* Major version of the LLVM API */
 #define LLVM_VERSION_MAJOR ${LLVM_VERSION_MAJOR}
index 9314ac415163b256311984be6926e900d1544857..c3edec8687834b6dd64001ba256b6a3e0a636239 100644 (file)
@@ -97,7 +97,7 @@ public:
   }
 #endif // USE_INTEL_JITEVENTS
 
-#if defined(LLVM_USE_OPROFILE) && LLVM_USE_OPROFILE
+#if LLVM_USE_OPROFILE
   // Construct an OProfileJITEventListener
   static JITEventListener *createOProfileJITEventListener();