gallivm: Limit DEBUG workaround to LLVM < 7

As of version 7, LLVM uses LLVM_DEBUG instead of just DEBUG.

Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
This commit is contained in:
Michel Dänzer 2019-09-16 17:06:19 +02:00 committed by Michel Dänzer
parent 26351f1ee3
commit 8218f6e22d

View file

@ -44,9 +44,11 @@
#include <llvm/Config/llvm-config.h>
#if LLVM_VERSION_MAJOR < 7
// Workaround http://llvm.org/PR23628
#pragma push_macro("DEBUG")
#undef DEBUG
#endif
#include <llvm/Config/llvm-config.h>
#include <llvm-c/Core.h>
@ -73,8 +75,10 @@
#include <llvm/ExecutionEngine/JITEventListener.h>
#endif
#if LLVM_VERSION_MAJOR < 7
// Workaround http://llvm.org/PR23628
#pragma pop_macro("DEBUG")
#endif
#include "c11/threads.h"
#include "os/os_thread.h"