|
|
|
|
@ -7,13 +7,34 @@
|
|
|
|
|
|
|
|
|
|
#ifndef __LANGUAGEKIT_LLVM_HACKS__
|
|
|
|
|
#define __LANGUAGEKIT_LLVM_HACKS__
|
|
|
|
|
#if LLVM_MAJOR < 3 || (LLVM_MAJOR >=3 && LLVM_MINOR <= 2)
|
|
|
|
|
#if LLVM_MAJOR < 3 || (LLVM_MAJOR >=3 && LLVM_MINOR <= 1)
|
|
|
|
|
#include <llvm/Support/IRBuilder.h>
|
|
|
|
|
#else
|
|
|
|
|
#include <llvm/IRBuilder.h>
|
|
|
|
|
#endif
|
|
|
|
|
#include <llvm/Function.h>
|
|
|
|
|
#include <llvm/Module.h>
|
|
|
|
|
#include <llvm/LLVMContext.h>
|
|
|
|
|
#include <llvm/Instructions.h>
|
|
|
|
|
#include <llvm/Metadata.h>
|
|
|
|
|
#include <llvm/Intrinsics.h>
|
|
|
|
|
#if LLVM_MAJOR < 3 || (LLVM_MAJOR >=3 && LLVM_MINOR < 2)
|
|
|
|
|
#include <llvm/Support/IRBuilder.h>
|
|
|
|
|
#include <llvm/Constants.h>
|
|
|
|
|
#include <llvm/GlobalAlias.h>
|
|
|
|
|
#include <llvm/GlobalVariable.h>
|
|
|
|
|
#include <llvm/DefaultPasses.h>
|
|
|
|
|
#else
|
|
|
|
|
#include <llvm/IRBuilder.h>
|
|
|
|
|
#include <llvm/IR/IRBuilder.h>
|
|
|
|
|
#include <llvm/IR/Function.h>
|
|
|
|
|
#include <llvm/IR/Module.h>
|
|
|
|
|
#include <llvm/IR/LLVMContext.h>
|
|
|
|
|
#include <llvm/IR/Instructions.h>
|
|
|
|
|
#include <llvm/IR/Metadata.h>
|
|
|
|
|
#include <llvm/IR/Intrinsics.h>
|
|
|
|
|
#include <llvm/IR/Constants.h>
|
|
|
|
|
#include <llvm/IR/GlobalVariable.h>
|
|
|
|
|
#include <llvm/IR/GlobalAlias.h>
|
|
|
|
|
#include <llvm/PassSupport.h>
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|