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:
parent
bb42071f63
commit
51342f1fd7
4 changed files with 1 additions and 148 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue