1
Fork 0

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.
This commit is contained in:
Josh Stone 2017-11-30 17:28:28 -08:00
parent bb42071f63
commit 51342f1fd7
4 changed files with 1 additions and 148 deletions

View file

@ -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"