Lines Matching refs:DBuilder
468 DIBuilder DBuilder(*M); in CreateOldFunctionBodyAndDI() local
472 auto *File = DBuilder.createFile("filename.c", "/file/dir/"); in CreateOldFunctionBodyAndDI()
473 DITypeRefArray ParamTypes = DBuilder.getOrCreateTypeArray(None); in CreateOldFunctionBodyAndDI()
475 DBuilder.createSubroutineType(ParamTypes); in CreateOldFunctionBodyAndDI()
476 auto *CU = DBuilder.createCompileUnit(dwarf::DW_LANG_C99, in CreateOldFunctionBodyAndDI()
477 DBuilder.createFile("filename.c", in CreateOldFunctionBodyAndDI()
481 auto *Subprogram = DBuilder.createFunction( in CreateOldFunctionBodyAndDI()
498 auto *IntType = DBuilder.createBasicType("int", 32, dwarf::DW_ATE_signed); in CreateOldFunctionBodyAndDI()
499 auto *E = DBuilder.createExpression(); in CreateOldFunctionBodyAndDI()
501 DBuilder.createAutoVariable(Subprogram, "x", File, 5, IntType, true); in CreateOldFunctionBodyAndDI()
503 DBuilder.insertDeclare(Alloca, Variable, E, DL, Store); in CreateOldFunctionBodyAndDI()
504 DBuilder.insertDbgValueIntrinsic(AllocaContent, Variable, E, DL, Entry); in CreateOldFunctionBodyAndDI()
511 auto *InlinedSP = DBuilder.createFunction( in CreateOldFunctionBodyAndDI()
515 DBuilder.createAutoVariable(InlinedSP, "inlined", File, 5, StructType, true); in CreateOldFunctionBodyAndDI()
516 auto *Scope = DBuilder.createLexicalBlock( in CreateOldFunctionBodyAndDI()
517 DBuilder.createLexicalBlockFile(InlinedSP, File), File, 1, 1); in CreateOldFunctionBodyAndDI()
521 DBuilder.insertDeclare(Alloca, InlinedVar, E, InlinedDL, Store); in CreateOldFunctionBodyAndDI()
524 DBuilder.finalize(); in CreateOldFunctionBodyAndDI()
530 DBuilder.createFile("extra.c", "/file/dir"), in CreateOldFunctionBodyAndDI()
840 DIBuilder DBuilder(*OldM); in CreateOldModule() local
852 auto *File = DBuilder.createFile("filename.c", "/file/dir/"); in CreateOldModule()
853 DITypeRefArray ParamTypes = DBuilder.getOrCreateTypeArray(None); in CreateOldModule()
854 DISubroutineType *DFuncType = DBuilder.createSubroutineType(ParamTypes); in CreateOldModule()
855 auto *CU = DBuilder.createCompileUnit(dwarf::DW_LANG_C99, in CreateOldModule()
856 DBuilder.createFile("filename.c", in CreateOldModule()
860 auto *Subprogram = DBuilder.createFunction( in CreateOldModule()
866 auto GVExpression = DBuilder.createGlobalVariableExpression( in CreateOldModule()
867 Subprogram, "gv", "gv", File, 1, DBuilder.createNullPtrType(), false); in CreateOldModule()
871 auto Expr = DBuilder.createExpression( in CreateOldModule()
874 DBuilder.createGlobalVariableExpression( in CreateOldModule()
876 DBuilder.createNullPtrType(), false, true, Expr); in CreateOldModule()
883 DBuilder.finalize(); in CreateOldModule()