clover: Fix build error with LLVM 3.4.
authorVinson Lee <vlee@freedesktop.org>
Sun, 19 Oct 2014 07:13:33 +0000 (00:13 -0700)
committerVinson Lee <vlee@freedesktop.org>
Tue, 21 Oct 2014 22:40:47 +0000 (15:40 -0700)
commit1ab6543431b5a4eaf589cdabf2227088dd62ce6f
tree5ffd1912ae50248a30011f92a18ac64ef0a08bba
parent43b243236824ce80daaa5cb4af5db94aaca0855e
clover: Fix build error with LLVM 3.4.

DataLayoutPass was added in LLVM 3.5 r202168, commit
57edc9d4ff1648568a5dd7e9958649065b260dca "Make DataLayout a plain
object, not a pass.".

This patch fixes this build error with LLVM 3.4.

  CXX      llvm/libclllvm_la-invocation.lo
llvm/invocation.cpp: In function 'void {anonymous}::optimize(llvm::Module*, unsigned int, const std::vector<llvm::Function*>&)':
llvm/invocation.cpp:324:18: error: expected type-specifier
       PM.add(new llvm::DataLayoutPass(mod));
                  ^

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=85189
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
src/gallium/state_trackers/clover/llvm/invocation.cpp