Oops. s/#if defined(USE_OPROFILE)/#if USE_OPROFILE/. We #define
authorJeffrey Yasskin <jyasskin@google.com>
Fri, 10 Jul 2009 22:13:21 +0000 (22:13 +0000)
committerJeffrey Yasskin <jyasskin@google.com>
Fri, 10 Jul 2009 22:13:21 +0000 (22:13 +0000)
USE_OPROFILE to 0 on some paths through configure, which does the
wrong thing with #if defined().

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75300 91177308-0d34-0410-b5e6-96231b3b80d8

lib/ExecutionEngine/JIT/OProfileJITEventListener.cpp

index 1cc45139da1f7921f45e18712ef049cb9528e007..6263a5b500d81081293b7b47e0283eb99252f4f0 100644 (file)
@@ -25,7 +25,7 @@
 #include <stddef.h>
 using namespace llvm;
 
-#if defined(USE_OPROFILE)
+#if USE_OPROFILE
 
 #include <opagent.h>
 
@@ -96,7 +96,7 @@ JITEventListener *createOProfileJITEventListener() {
 }
 }
 
-#else  // !defined(USE_OPROFILE)
+#else  // USE_OPROFILE
 
 namespace llvm {
 // By defining this to return NULL, we can let clients call it unconditionally,
@@ -106,4 +106,4 @@ JITEventListener *createOProfileJITEventListener() {
 }
 }  // namespace llvm
 
-#endif  // defined(USE_OPROFILE)
+#endif  // USE_OPROFILE