[llvm] r333265 - Fix ODR violation from r333230
Krasimir Georgiev via llvm-commits
llvm-commits at lists.llvm.org
Fri May 25 03:10:02 PDT 2018
Author: krasimir
Date: Fri May 25 03:10:02 2018
New Revision: 333265
URL: http://llvm.org/viewvc/llvm-project?rev=333265&view=rev
Log:
Fix ODR violation from r333230
This is an ODR violation, for example in ExecutionEngine/MCJIT/MCJIT.o: multiple definition of 'LLVMCreateIntelJITEventListener'.
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=333265&r1=333264&r2=333265&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ExecutionEngine/JITEventListener.h (original)
+++ llvm/trunk/include/llvm/ExecutionEngine/JITEventListener.h Fri May 25 03:10:02 2018
@@ -126,15 +126,11 @@ DEFINE_SIMPLE_CONVERSION_FUNCTIONS(JITEv
} // end namespace llvm
#ifndef LLVM_USE_INTEL_JITEVENTS
-LLVMJITEventListenerRef LLVMCreateIntelJITEventListener(void) {
- return nullptr;
-}
+LLVMJITEventListenerRef LLVMCreateIntelJITEventListener(void);
#endif
#ifndef LLVM_USE_OPROFILE
-LLVMJITEventListenerRef LLVMCreateOProfileJITEventListener(void) {
- return nullptr;
-}
+LLVMJITEventListenerRef LLVMCreateOProfileJITEventListener(void);
#endif
#endif // LLVM_EXECUTIONENGINE_JITEVENTLISTENER_H
More information about the llvm-commits
mailing list