File tree 1 file changed +8
-0
lines changed
1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -282,7 +282,11 @@ extern "C" LLVMValueRef LLVMDIBuilderCreateSubroutineType(
282
282
LLVMValueRef ParameterTypes) {
283
283
return wrap (Builder->createSubroutineType (
284
284
unwrapDI<DIFile>(File),
285
+ #if LLVM_VERSION_MINOR >= 6
285
286
unwrapDI<DITypeArray>(ParameterTypes)));
287
+ #else
288
+ unwrapDI<DIArray>(ParameterTypes)));
289
+ #endif
286
290
}
287
291
288
292
extern " C" LLVMValueRef LLVMDIBuilderCreateFunction (
@@ -634,7 +638,11 @@ extern "C" void LLVMDICompositeTypeSetTypeArray(
634
638
LLVMValueRef CompositeType,
635
639
LLVMValueRef TypeArray)
636
640
{
641
+ #if LLVM_VERSION_MINOR >= 6
637
642
unwrapDI<DICompositeType>(CompositeType).setArrays (unwrapDI<DIArray>(TypeArray));
643
+ #else
644
+ unwrapDI<DICompositeType>(CompositeType).setTypeArray (unwrapDI<DIArray>(TypeArray));
645
+ #endif
638
646
}
639
647
640
648
extern " C" char *LLVMTypeToString (LLVMTypeRef Type) {
You can’t perform that action at this time.
0 commit comments