diff --git a/src/libponyc/codegen/gendebug.cc b/src/libponyc/codegen/gendebug.cc index df5fded590..b283f74576 100644 --- a/src/libponyc/codegen/gendebug.cc +++ b/src/libponyc/codegen/gendebug.cc @@ -214,6 +214,7 @@ LLVMMetadataRef LLVMDIBuilderCreateBasicType(LLVMDIBuilderRef d, } #endif +#if PONY_LLVM < 700 LLVMMetadataRef LLVMDIBuilderCreatePointerType(LLVMDIBuilderRef d, LLVMMetadataRef elem_type, uint64_t size_bits, uint64_t align_bits) { @@ -222,6 +223,7 @@ LLVMMetadataRef LLVMDIBuilderCreatePointerType(LLVMDIBuilderRef d, return wrap(pd->createPointerType(unwrap(elem_type), size_bits, static_cast(align_bits))); } +#endif #if PONY_LLVM < 700 LLVMMetadataRef LLVMDIBuilderCreateSubroutineType(LLVMDIBuilderRef d, diff --git a/src/libponyc/codegen/gendebug.h b/src/libponyc/codegen/gendebug.h index a55a16b104..b3754a2f56 100644 --- a/src/libponyc/codegen/gendebug.h +++ b/src/libponyc/codegen/gendebug.h @@ -85,9 +85,11 @@ LLVMMetadataRef LLVMDIBuilderCreateArtificialVariable(LLVMDIBuilderRef d, LLVMMetadataRef scope, const char* name, unsigned arg, LLVMMetadataRef file, unsigned line, LLVMMetadataRef type); +#if PONY_LLVM < 700 LLVMMetadataRef LLVMDIBuilderCreateBasicType(LLVMDIBuilderRef d, const char* name, uint64_t size_bits, uint64_t align_bits, unsigned encoding); +#endif #if PONY_LLVM < 700 LLVMMetadataRef LLVMDIBuilderCreatePointerType(LLVMDIBuilderRef d,