Lines Matching refs:builder

46 void WriteDebugInfo(ElfBuilder<ElfTypes>* builder,  in WriteDebugInfo()  argument
49 WriteDebugSymbols(builder, /* mini-debug-info= */ false, debug_info); in WriteDebugInfo()
52 WriteCFISection(builder, debug_info.compiled_methods); in WriteDebugInfo()
92 ElfDebugLineWriter<ElfTypes> line_writer(builder); in WriteDebugInfo()
102 ElfDebugInfoWriter<ElfTypes> info_writer(builder); in WriteDebugInfo()
124 std::unique_ptr<ElfBuilder<ElfTypes>> builder(new ElfBuilder<ElfTypes>(isa, &out)); in MakeMiniDebugInfoInternal() local
125 builder->Start(/* write_program_headers= */ false); in MakeMiniDebugInfoInternal()
128 builder->GetText()->AllocateVirtualMemory(text_section_address, text_section_size); in MakeMiniDebugInfoInternal()
131 builder->GetDex()->AllocateVirtualMemory(dex_section_address, dex_section_size); in MakeMiniDebugInfoInternal()
134 WriteDebugSymbols(builder.get(), /* mini-debug-info= */ true, debug_info); in MakeMiniDebugInfoInternal()
137 WriteCFISection(builder.get(), debug_info.compiled_methods); in MakeMiniDebugInfoInternal()
139 builder->End(); in MakeMiniDebugInfoInternal()
140 CHECK(builder->Good()); in MakeMiniDebugInfoInternal()
187 std::unique_ptr<ElfBuilder<ElfTypes>> builder(new ElfBuilder<ElfTypes>(isa, &out)); in MakeElfFileForJIT() local
189 builder->Start(/* write_program_headers= */ false); in MakeElfFileForJIT()
190 builder->GetText()->AllocateVirtualMemory(method_info.code_address, method_info.code_size); in MakeElfFileForJIT()
194 WriteDebugSymbols(builder.get(), /* mini-debug-info= */ true, debug_info); in MakeElfFileForJIT()
195 WriteCFISection(builder.get(), debug_info.compiled_methods); in MakeElfFileForJIT()
197 WriteDebugInfo(builder.get(), debug_info); in MakeElfFileForJIT()
199 builder->End(); in MakeElfFileForJIT()
200 CHECK(builder->Good()); in MakeElfFileForJIT()
252 std::unique_ptr<ElfBuilder<ElfTypes>> builder(new ElfBuilder<ElfTypes>(isa, &out)); in PackElfFileForJIT() local
253 builder->Start(/*write_program_headers=*/ false); in PackElfFileForJIT()
254 auto* text = builder->GetText(); in PackElfFileForJIT()
255 auto* strtab = builder->GetStrTab(); in PackElfFileForJIT()
256 auto* symtab = builder->GetSymTab(); in PackElfFileForJIT()
257 auto* debug_frame = builder->GetDebugFrame(); in PackElfFileForJIT()
314 builder->End(); in PackElfFileForJIT()
315 CHECK(builder->Good()); in PackElfFileForJIT()
329 std::unique_ptr<ElfBuilder<ElfTypes>> builder(new ElfBuilder<ElfTypes>(isa, &out)); in PackElfFileForJIT() local
330 builder->Start(/*write_program_headers=*/ false); in PackElfFileForJIT()
332 builder->GetText()->AllocateVirtualMemory(min_address, max_address - min_address); in PackElfFileForJIT()
334 builder->WriteSection(".gnu_debugdata", &gnu_debugdata); in PackElfFileForJIT()
335 builder->End(); in PackElfFileForJIT()
336 CHECK(builder->Good()); in PackElfFileForJIT()
352 std::unique_ptr<ElfBuilder<ElfTypes>> builder(new ElfBuilder<ElfTypes>(isa, &out)); in WriteDebugElfFileForClasses() local
354 builder->Start(/* write_program_headers= */ false); in WriteDebugElfFileForClasses()
355 ElfDebugInfoWriter<ElfTypes> info_writer(builder.get()); in WriteDebugElfFileForClasses()
361 builder->End(); in WriteDebugElfFileForClasses()
362 CHECK(builder->Good()); in WriteDebugElfFileForClasses()
368 ElfBuilder<ElfTypes32>* builder,
371 ElfBuilder<ElfTypes64>* builder,