Skip to content

Commit

Permalink
Fix broken MacOS LLVM 7 build
Browse files Browse the repository at this point in the history
  • Loading branch information
SeanTAllen committed Feb 28, 2019
1 parent f6bef04 commit 7b663c0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/libponyc/codegen/gendebug.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand All @@ -222,6 +223,7 @@ LLVMMetadataRef LLVMDIBuilderCreatePointerType(LLVMDIBuilderRef d,
return wrap(pd->createPointerType(unwrap<DIType>(elem_type), size_bits,
static_cast<uint32_t>(align_bits)));
}
#endif

#if PONY_LLVM < 700
LLVMMetadataRef LLVMDIBuilderCreateSubroutineType(LLVMDIBuilderRef d,
Expand Down
2 changes: 2 additions & 0 deletions src/libponyc/codegen/gendebug.h
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 7b663c0

Please sign in to comment.