[llvm] r263487 - [JITEventListener] Fix some -Wundef warnings
Keno Fischer via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 14 13:49:06 PDT 2016
Author: kfischer
Date: Mon Mar 14 15:49:06 2016
New Revision: 263487
URL: http://llvm.org/viewvc/llvm-project?rev=263487&view=rev
Log:
[JITEventListener] Fix some -Wundef warnings
Summary:
This check was added in rL152620, and has started causing downstream warnings in Julia:
```
In file included from /home/tkelman/Julia/julia-0.5/src/codegen.cpp:22:0:
/home/tkelman/Julia/julia-0.5/usr/include/llvm/ExecutionEngine/JITEventListener.h:84:5: warning: "LLVM_USE_INTEL_JITEVENTS" is not defined [-Wundef]
#if LLVM_USE_INTEL_JITEVENTS
^
/home/tkelman/Julia/julia-0.5/usr/include/llvm/ExecutionEngine/JITEventListener.h:100:5: warning: "LLVM_USE_OPROFILE" is not defined [-Wundef]
#if LLVM_USE_OPROFILE
^
```
Patch by Tony Kelman.
Reviewers: loladiro
Differential Revision: http://reviews.llvm.org/D17254
Modified:
llvm/trunk/include/llvm/ExecutionEngine/JITEventListener.h
Modified: llvm/trunk/include/llvm/ExecutionEngine/JITEventListener.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ExecutionEngine/JITEventListener.h?rev=263487&r1=263486&r2=263487&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ExecutionEngine/JITEventListener.h (original)
+++ llvm/trunk/include/llvm/ExecutionEngine/JITEventListener.h Mon Mar 14 15:49:06 2016
@@ -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();
More information about the llvm-commits
mailing list