<div dir="ltr">LLVM moved a bunch of IR-related headers for version 3.3. <br><br>This fixes the libclc build to follow suit.<br><div class="gmail_quote">
<br>
---<br>
utils/prepare-builtins.cpp | 12 ++++++++++++<br>
1 file changed, 12 insertions(+)<br>
<br>
diff --git a/utils/prepare-builtins.cpp b/utils/prepare-builtins.cpp<br>
index ae7731b..0141484 100644<br>
--- a/utils/prepare-builtins.cpp<br>
+++ b/utils/prepare-builtins.cpp<br>
@@ -1,9 +1,21 @@<br>
#include "llvm/ADT/OwningPtr.h"<br>
#include "llvm/Bitcode/ReaderWriter.h"<br>
+<br>
+#ifndef HAVE_LLVM<br>
+#include "llvm/Config/config.h"<br>
+#define HAVE_LLVM ((LLVM_VERSION_MAJOR << 8)|LLVM_VERSION_MINOR)<br>
+#endif<br>
+#if HAVE_LLVM < 0x0303<br>
#include "llvm/Function.h"<br>
#include "llvm/GlobalVariable.h"<br>
#include "llvm/LLVMContext.h"<br>
#include "llvm/Module.h"<br>
+#else<br>
+#include "llvm/IR/Function.h"<br>
+#include "llvm/IR/GlobalVariable.h"<br>
+#include "llvm/IR/LLVMContext.h"<br>
+#include "llvm/IR/Module.h"<br>
+#endif<br>
#include "llvm/Support/CommandLine.h"<br>
#include "llvm/Support/ManagedStatic.h"<br>
#include "llvm/Support/MemoryBuffer.h"<br>
<span class="HOEnZb"><font color="#888888">--<br>
1.7.10.4<br>
<br>
</font></span></div><br></div>