Update for LLVM 3.2dev API change
This commit is contained in:
5
type.cpp
5
type.cpp
@@ -2583,7 +2583,12 @@ ReferenceType::GetDIType(llvm::DIDescriptor scope) const {
|
|||||||
}
|
}
|
||||||
|
|
||||||
llvm::DIType diTargetType = targetType->GetDIType(scope);
|
llvm::DIType diTargetType = targetType->GetDIType(scope);
|
||||||
|
#if defined(LLVM_3_0) || defined(LLVM_3_1)
|
||||||
return m->diBuilder->createReferenceType(diTargetType);
|
return m->diBuilder->createReferenceType(diTargetType);
|
||||||
|
#else
|
||||||
|
return m->diBuilder->createReferenceType(llvm::dwarf::DW_TAG_reference_type,
|
||||||
|
diTargetType);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user