about summary refs log tree commit diff
path: root/src/rustllvm/rustllvm.h
diff options
context:
space:
mode:
authorJosh Stone <jistone@redhat.com>2017-11-30 17:28:28 -0800
committerJosh Stone <jistone@redhat.com>2017-12-01 14:37:23 -0800
commit51342f1fd7f38153003f9780d83babc222139bb1 (patch)
tree506e43826f5d781485c807a63651c69f3ef9df90 /src/rustllvm/rustllvm.h
parentbb42071f63830a984c4983f6fbdf982916857f72 (diff)
downloadrust-51342f1fd7f38153003f9780d83babc222139bb1.tar.gz
rust-51342f1fd7f38153003f9780d83babc222139bb1.zip
rustllvm: Remove conditional code for LLVM < 3.9
We bumped the minimum LLVM to 3.9 in #45326.  This just cleans up the
conditional code in the rustllvm C++ wrappers to assume at least 3.9.
Diffstat (limited to 'src/rustllvm/rustllvm.h')
-rw-r--r--src/rustllvm/rustllvm.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/rustllvm/rustllvm.h b/src/rustllvm/rustllvm.h
index 20816af2f1c..8c2f855c226 100644
--- a/src/rustllvm/rustllvm.h
+++ b/src/rustllvm/rustllvm.h
@@ -57,11 +57,7 @@
 
 #define LLVM_VERSION_LT(major, minor) (!LLVM_VERSION_GE((major), (minor)))
 
-#if LLVM_VERSION_GE(3, 7)
 #include "llvm/IR/LegacyPassManager.h"
-#else
-#include "llvm/PassManager.h"
-#endif
 
 #if LLVM_VERSION_GE(4, 0)
 #include "llvm/Bitcode/BitcodeReader.h"