Lines Matching refs:DBuilder
226 DIBuilder DBuilder(*M); in CreateOldFunctionBodyAndDI() local
230 auto *File = DBuilder.createFile("filename.c", "/file/dir/"); in CreateOldFunctionBodyAndDI()
231 DITypeRefArray ParamTypes = DBuilder.getOrCreateTypeArray(None); in CreateOldFunctionBodyAndDI()
233 DBuilder.createSubroutineType(ParamTypes); in CreateOldFunctionBodyAndDI()
235 DBuilder.createCompileUnit(dwarf::DW_LANG_C99, "filename.c", in CreateOldFunctionBodyAndDI()
238 auto *Subprogram = DBuilder.createFunction( in CreateOldFunctionBodyAndDI()
256 DBuilder.createBasicType("int", 32, 0, dwarf::DW_ATE_signed); in CreateOldFunctionBodyAndDI()
257 auto *E = DBuilder.createExpression(); in CreateOldFunctionBodyAndDI()
259 DBuilder.createAutoVariable(Subprogram, "x", File, 5, IntType, true); in CreateOldFunctionBodyAndDI()
261 DBuilder.insertDeclare(Alloca, Variable, E, DL, Store); in CreateOldFunctionBodyAndDI()
262 DBuilder.insertDbgValueIntrinsic(AllocaContent, 0, Variable, E, DL, in CreateOldFunctionBodyAndDI()
265 DBuilder.finalize(); in CreateOldFunctionBodyAndDI()
406 DIBuilder DBuilder(*OldM); in CreateOldModule() local
417 auto *File = DBuilder.createFile("filename.c", "/file/dir/"); in CreateOldModule()
418 DITypeRefArray ParamTypes = DBuilder.getOrCreateTypeArray(None); in CreateOldModule()
419 DISubroutineType *DFuncType = DBuilder.createSubroutineType(ParamTypes); in CreateOldModule()
421 DBuilder.createCompileUnit(dwarf::DW_LANG_C99, "filename.c", in CreateOldModule()
424 auto *Subprogram = DBuilder.createFunction(CU, "f", "f", File, 4, DFuncType, in CreateOldModule()
433 DBuilder.finalize(); in CreateOldModule()