本文整理汇总了C++中DIBuilder::createMemberType方法的典型用法代码示例。如果您正苦于以下问题:C++ DIBuilder::createMemberType方法的具体用法?C++ DIBuilder::createMemberType怎么用?C++ DIBuilder::createMemberType使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DIBuilder
的用法示例。
在下文中一共展示了DIBuilder::createMemberType方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: LLVMDIBuilderCreateMemberType
LLVMValueRef LLVMDIBuilderCreateMemberType(
LLVMDIBuilderRef D,
LLVMValueRef Scope,
const char *Name,
LLVMValueRef File,
unsigned Line,
uint64_t SizeInBits,
uint64_t AlignInBits,
uint64_t OffsetInBits,
unsigned Flags,
LLVMValueRef Ty)
{
DIBuilder *db = unwrap(D);
DIDerivedType DT = db->createMemberType(
unwrapDI<DIDescriptor>(Scope),
Name,
unwrapDI<DIFile>(File),
Line,
SizeInBits,
AlignInBits,
OffsetInBits,
Flags,
unwrapDI<DIType>(Ty));
return wrap(DT);
}
示例2: wrap
LLVMMetadataRef
LLVMDIBuilderCreateMemberType(LLVMDIBuilderRef Dref, LLVMMetadataRef Scope,
const char *Name, LLVMMetadataRef File,
unsigned Line, uint64_t SizeInBits,
uint64_t AlignInBits, uint64_t OffsetInBits,
unsigned Flags, LLVMMetadataRef Ty) {
DIBuilder *D = unwrap(Dref);
return wrap(D->createMemberType(
unwrap<DIScope>(Scope), Name, File ? unwrap<DIFile>(File) : nullptr, Line,
SizeInBits, AlignInBits, OffsetInBits, Flags, unwrap<DIType>(Ty)));
}
示例3: DIBuilderCreateMemberType
LLVMValueRef DIBuilderCreateMemberType(LLVMDIBuilderRef dref,
LLVMValueRef diScope, const char *name,
LLVMValueRef diFile, unsigned line,
uint64_t sizeInBits,
uint64_t alignInBits,
uint64_t offsetInBits, unsigned flags,
LLVMValueRef diType) {
DIBuilder *d = unwrap(dref);
DIDerivedType dt = d->createMemberType(
unwrapDI<DIDescriptor>(diScope), StringRef(name),
unwrapDI<DIFile>(diFile), line, sizeInBits, alignInBits, offsetInBits,
flags, unwrapDI<DIType>(diType));
return wrap(dt);
}