LLVMValueRef LLVMDIBuilderCreateLexicalBlock(LLVMDIBuilderRef Dref, LLVMValueRef Scope, LLVMValueRef File, unsigned Line, unsigned Column) { DIBuilder *D = unwrap(Dref); DILexicalBlock LB = D->createLexicalBlock( unwrapDI<DIDescriptor>(Scope), unwrapDI<DIFile>(File), Line, Column); return wrap(LB); }
LLVMMetadataRef LLVMDIBuilderCreateLexicalBlock(LLVMDIBuilderRef Dref, LLVMMetadataRef Scope, LLVMMetadataRef File, unsigned Line, unsigned Column) { DIBuilder *D = unwrap(Dref); auto *LB = D->createLexicalBlock(unwrap<DILocalScope>(Scope), unwrap<DIFile>(File), Line, Column); return wrap(LB); }
LLVMValueRef DIBuilderCreateLexicalBlock(LLVMDIBuilderRef dref, LLVMValueRef diScope, LLVMValueRef diFile, unsigned line, unsigned column) { DIBuilder *d = unwrap(dref); DILexicalBlock lb = d->createLexicalBlock(unwrapDI<DIDescriptor>(diScope), unwrapDI<DIFile>(diFile), line, column); return wrap(lb); }
LLVMValueRef LLVMDIBuilderCreateLexicalBlock( LLVMDIBuilderRef D, LLVMValueRef Scope, LLVMValueRef File, unsigned Line, unsigned Column) { DIBuilder *db = unwrap(D); DILexicalBlock LB = db->createLexicalBlock( unwrapDI<DIDescriptor>(Scope), unwrapDI<DIFile>(File), Line, Column, 0 /*DWARF Discriminator. What is that? */ ); return wrap(LB); }