本文整理汇总了C++中DIBuilder::createLexicalBlock方法的典型用法代码示例。如果您正苦于以下问题:C++ DIBuilder::createLexicalBlock方法的具体用法?C++ DIBuilder::createLexicalBlock怎么用?C++ DIBuilder::createLexicalBlock使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DIBuilder
的用法示例。
在下文中一共展示了DIBuilder::createLexicalBlock方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: LLVMDIBuilderCreateLexicalBlock
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);
}
示例2: LLVMDIBuilderCreateLexicalBlock
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);
}
示例3: DIBuilderCreateLexicalBlock
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);
}
示例4: LLVMDIBuilderCreateLexicalBlock
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);
}