try to work with llvm < 3.7

This commit is contained in:
Andrea Fioraldi
2019-12-21 21:14:01 +01:00
parent 65bafe7192
commit 8679f3d757

View File

@ -36,7 +36,14 @@
#include <fstream> #include <fstream>
#include <sys/time.h> #include <sys/time.h>
#include "llvm/IR/DebugInfo.h" #include <llvm/Config/llvm-config.h>
#if (LLVM_VERSION_MAJOR <= 3) && (LLVM_VERSION_MINOR < 7)
#include <llvm/DebugInfo.h>
#else
#include <llvm/IR/DebugInfo.h>
#endif
#include "llvm/IR/BasicBlock.h" #include "llvm/IR/BasicBlock.h"
#include "llvm/IR/IRBuilder.h" #include "llvm/IR/IRBuilder.h"
#include "llvm/IR/LegacyPassManager.h" #include "llvm/IR/LegacyPassManager.h"