From 7b663c0f11f5fca181b4d0e80627460eb1b5d51a Mon Sep 17 00:00:00 2001 From: Sean T Allen Date: Wed, 27 Feb 2019 19:56:20 -0500 Subject: [PATCH] Fix broken MacOS LLVM 7 build --- src/libponyc/codegen/gendebug.cc | 2 ++ src/libponyc/codegen/gendebug.h | 2 ++ 2 files changed, 4 insertions(+) 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,