aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/swr/rasterizer/jitter/streamout_jit.cpp
diff options
context:
space:
mode:
authorTim Rowley <[email protected]>2016-03-21 14:08:38 -0600
committerTim Rowley <[email protected]>2016-03-25 14:45:39 -0500
commit68314b676968e2cf0f8e94f573fa28e766e48349 (patch)
tree78aa4753d3fd1e17dabee36cd7579cced40255b4 /src/gallium/drivers/swr/rasterizer/jitter/streamout_jit.cpp
parentec9d4c4b372df773e4453c228b938e7c6c526c4c (diff)
swr: [rasterizer jitter] support llvm-svn
Diffstat (limited to 'src/gallium/drivers/swr/rasterizer/jitter/streamout_jit.cpp')
-rw-r--r--src/gallium/drivers/swr/rasterizer/jitter/streamout_jit.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/gallium/drivers/swr/rasterizer/jitter/streamout_jit.cpp b/src/gallium/drivers/swr/rasterizer/jitter/streamout_jit.cpp
index 6c5f22bc47c..36baa8d794b 100644
--- a/src/gallium/drivers/swr/rasterizer/jitter/streamout_jit.cpp
+++ b/src/gallium/drivers/swr/rasterizer/jitter/streamout_jit.cpp
@@ -293,7 +293,13 @@ struct StreamOutJit : public Builder
JitManager::DumpToFile(soFunc, "SoFunc");
- FunctionPassManager passes(JM()->mpCurrentModule);
+#if HAVE_LLVM == 0x306
+ FunctionPassManager
+#else
+ llvm::legacy::FunctionPassManager
+#endif
+ passes(JM()->mpCurrentModule);
+
passes.add(createBreakCriticalEdgesPass());
passes.add(createCFGSimplificationPass());
passes.add(createEarlyCSEPass());