コード例 #1
0
ファイル: DIBuilderBindings.cpp プロジェクト: Drup/llvm
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
0
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
0
ファイル: dibuilder.cpp プロジェクト: go-llvm/llvm
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
0
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);
}