diff options
author | Tom Stellard <[email protected]> | 2013-02-13 20:59:41 +0000 |
---|---|---|
committer | Tom Stellard <[email protected]> | 2013-02-19 15:52:55 +0000 |
commit | 7cd248aa7938a068663fcd605169b7d4e21636bf (patch) | |
tree | 6dcc8b4e18ed7599a27f13a812508a2a9c2c4e4f /src/gallium/drivers/radeon | |
parent | 1f006717db5258e703d83b37772b85ad25bf3319 (diff) |
radeon/llvm: Fix build with LLVM 3.3
Diffstat (limited to 'src/gallium/drivers/radeon')
-rw-r--r-- | src/gallium/drivers/radeon/radeon_llvm_emit.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeon/radeon_llvm_emit.cpp b/src/gallium/drivers/radeon/radeon_llvm_emit.cpp index 903e1028a09..0491e64bb6f 100644 --- a/src/gallium/drivers/radeon/radeon_llvm_emit.cpp +++ b/src/gallium/drivers/radeon/radeon_llvm_emit.cpp @@ -25,8 +25,16 @@ */ #include "radeon_llvm_emit.h" +#if HAVE_LLVM < 0x0303 #include <llvm/LLVMContext.h> #include <llvm/Module.h> +#include <llvm/DataLayout.h> +#else +#include <llvm/IR/LLVMContext.h> +#include <llvm/IR/Module.h> +#include <llvm/IR/DataLayout.h> +#endif + #include <llvm/PassManager.h> #include <llvm/ADT/Triple.h> #include <llvm/Support/FormattedStream.h> @@ -39,7 +47,6 @@ #include <llvm/Target/TargetMachine.h> #include <llvm/Transforms/Scalar.h> #include <llvm-c/Target.h> -#include <llvm/DataLayout.h> #include <iostream> #include <stdlib.h> |