File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 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(
282282 LLVMValueRef ParameterTypes) {
283283 return wrap (Builder->createSubroutineType (
284284 unwrapDI<DIFile>(File),
285+ #if LLVM_VERSION_MINOR >= 6
285286 unwrapDI<DITypeArray>(ParameterTypes)));
287+ #else
288+ unwrapDI<DIArray>(ParameterTypes)));
289+ #endif
286290}
287291
288292extern " C" LLVMValueRef LLVMDIBuilderCreateFunction (
@@ -634,7 +638,11 @@ extern "C" void LLVMDICompositeTypeSetTypeArray(
634638 LLVMValueRef CompositeType,
635639 LLVMValueRef TypeArray)
636640{
641+ #if LLVM_VERSION_MINOR >= 6
637642 unwrapDI<DICompositeType>(CompositeType).setArrays (unwrapDI<DIArray>(TypeArray));
643+ #else
644+ unwrapDI<DICompositeType>(CompositeType).setTypeArray (unwrapDI<DIArray>(TypeArray));
645+ #endif
638646}
639647
640648extern " C" char *LLVMTypeToString (LLVMTypeRef Type) {
You can’t perform that action at this time.
0 commit comments