From 07e5114430d63dd44e9ab4737c1d23806d6d8daa Mon Sep 17 00:00:00 2001 From: Robert Widmann Date: Thu, 10 May 2018 21:10:06 +0000 Subject: [LLVM-C] Consolidate llgo's DIBuilder Bindings Summary: Move and correct LLVMDIBuilderCreateTypedef. This is the last API in DIBuilderBindings.h, so it is being removed and the C API will now be re-exported from IRBindings.h. Reviewers: whitequark, harlanhaskins, deadalnix Reviewed By: whitequark Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D46725 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@332041 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm-c/DebugInfo.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'include/llvm-c') diff --git a/include/llvm-c/DebugInfo.h b/include/llvm-c/DebugInfo.h index 6f12b48f4c6..0576eecd9ef 100644 --- a/include/llvm-c/DebugInfo.h +++ b/include/llvm-c/DebugInfo.h @@ -673,6 +673,21 @@ LLVMDIBuilderCreateReferenceType(LLVMDIBuilderRef Builder, unsigned Tag, LLVMMetadataRef LLVMDIBuilderCreateNullPtrType(LLVMDIBuilderRef Builder); +/** + * Create debugging information entry for a typedef. + * \param Builder The DIBuilder. + * \param Type Original type. + * \param Name Typedef name. + * \param File File where this type is defined. + * \param LineNo Line number. + * \param Scope The surrounding context for the typedef. +*/ +LLVMMetadataRef +LLVMDIBuilderCreateTypedef(LLVMDIBuilderRef Builder, LLVMMetadataRef Type, + const char *Name, size_t NameLen, + LLVMMetadataRef File, unsigned LineNo, + LLVMMetadataRef Scope); + /** * Create a permanent forward-declared type. * \param Builder The DIBuilder. -- cgit v1.2.3