<div dir="ltr"><div>Whoops, wrong list. Sorry for the noise.<br><br></div>--Aaron<br><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Mar 8, 2013 at 8:21 AM, Aaron Watry <span dir="ltr"><<a href="mailto:awatry@gmail.com" target="_blank">awatry@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">LLVM moved a bunch of IR-related headers for version 3.3.<br>
<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></blockquote></div><br></div></div>