[Mesa-dev] [PATCH] gallivm: Fix includes for newer llvm (llvm SVN commit 138450).
Johannes Obermayr
johannesobermayr at gmx.de
Sun Sep 4 05:09:48 PDT 2011
---
src/gallium/auxiliary/gallivm/lp_bld_debug.cpp | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp b/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp
index e252607..0adf51a 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp
+++ b/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp
@@ -27,12 +27,18 @@
#include <llvm-c/Core.h>
#include <llvm/Target/TargetMachine.h>
-#include <llvm/Target/TargetRegistry.h>
-#include <llvm/Target/TargetSelect.h>
#include <llvm/Target/TargetInstrInfo.h>
#include <llvm/Support/raw_ostream.h>
#include <llvm/Support/MemoryObject.h>
+#if HAVE_LLVM >= 0x0300
+#include <llvm/Support/TargetRegistry.h>
+#include <llvm/Support/TargetSelect.h>
+#else
+#include <llvm/Target/TargetRegistry.h>
+#include <llvm/Target/TargetSelect.h>
+#endif
+
#if HAVE_LLVM >= 0x0209
#include <llvm/Support/Host.h>
#else
--
1.7.3.4
More information about the mesa-dev
mailing list