From 40b432f28052f11e4bfeeb67f89663f8453119a7 Mon Sep 17 00:00:00 2001
From: Martin Nowack <m.nowack@imperial.ac.uk>
Date: Thu, 7 Mar 2019 15:23:06 +0000
Subject: Add support for LLVM 8.0

---
 lib/Module/KModule.cpp | 3 +++
 1 file changed, 3 insertions(+)

(limited to 'lib/Module')

diff --git a/lib/Module/KModule.cpp b/lib/Module/KModule.cpp
index 8014e135..4a2e6e79 100644
--- a/lib/Module/KModule.cpp
+++ b/lib/Module/KModule.cpp
@@ -48,6 +48,9 @@
 #include "llvm/Support/raw_os_ostream.h"
 #include "llvm/Support/Path.h"
 #include "llvm/Transforms/Scalar.h"
+#if LLVM_VERSION_CODE >= LLVM_VERSION(8, 0)
+#include "llvm/Transforms/Scalar/Scalarizer.h"
+#endif
 
 #include "llvm/Transforms/Utils/Cloning.h"
 
-- 
cgit 1.4.1