reversed macros LLVM_3_6 to LLVM_3_5+ in .cpp and .h files
This commit is contained in:
8
type.cpp
8
type.cpp
@@ -50,7 +50,7 @@
|
||||
#include <llvm/IR/Value.h>
|
||||
#include <llvm/IR/Module.h>
|
||||
#endif
|
||||
#if defined(LLVM_3_5) || defined(LLVM_3_6)
|
||||
#if !defined(LLVM_3_2) && !defined(LLVM_3_3) && !defined(LLVM_3_4) // LLVM 3.5+
|
||||
#include <llvm/IR/DebugInfo.h>
|
||||
#include <llvm/IR/DIBuilder.h>
|
||||
#else
|
||||
@@ -2981,14 +2981,16 @@ FunctionType::GetDIType(llvm::DIDescriptor scope) const {
|
||||
for (int i = 0; i < GetNumParameters(); ++i) {
|
||||
const Type *t = GetParameterType(i);
|
||||
if (t == NULL)
|
||||
#if defined(LLVM_3_4) || defined(LLVM_3_5) || defined(LLVM_3_6)
|
||||
|
||||
#if !defined(LLVM_3_2) && !defined(LLVM_3_3)// LLVM 3.4+
|
||||
return llvm::DICompositeType();
|
||||
#else
|
||||
return llvm::DIType();
|
||||
#endif
|
||||
retArgTypes.push_back(t->GetDIType(scope));
|
||||
}
|
||||
#if defined(LLVM_3_6)
|
||||
|
||||
#if !defined(LLVM_3_2) && !defined(LLVM_3_3) && !defined(LLVM_3_4) && !defined(LLVM_3_5) // LLVM 3.6+
|
||||
llvm::DITypeArray retArgTypesArray =
|
||||
m->diBuilder->getOrCreateTypeArray(llvm::ArrayRef<llvm::Value *>(retArgTypes));
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user