Lines Matching refs:Asm
71 void DwarfAccelTable::FinalizeTable(AsmPrinter *Asm, StringRef Prefix) { in FinalizeTable() argument
99 Data[i]->Sym = Asm->createTempSymbol(Prefix); in FinalizeTable()
113 void DwarfAccelTable::EmitHeader(AsmPrinter *Asm) { in EmitHeader() argument
114 Asm->OutStreamer->AddComment("Header Magic"); in EmitHeader()
115 Asm->EmitInt32(Header.magic); in EmitHeader()
116 Asm->OutStreamer->AddComment("Header Version"); in EmitHeader()
117 Asm->EmitInt16(Header.version); in EmitHeader()
118 Asm->OutStreamer->AddComment("Header Hash Function"); in EmitHeader()
119 Asm->EmitInt16(Header.hash_function); in EmitHeader()
120 Asm->OutStreamer->AddComment("Header Bucket Count"); in EmitHeader()
121 Asm->EmitInt32(Header.bucket_count); in EmitHeader()
122 Asm->OutStreamer->AddComment("Header Hash Count"); in EmitHeader()
123 Asm->EmitInt32(Header.hashes_count); in EmitHeader()
124 Asm->OutStreamer->AddComment("Header Data Length"); in EmitHeader()
125 Asm->EmitInt32(Header.header_data_len); in EmitHeader()
126 Asm->OutStreamer->AddComment("HeaderData Die Offset Base"); in EmitHeader()
127 Asm->EmitInt32(HeaderData.die_offset_base); in EmitHeader()
128 Asm->OutStreamer->AddComment("HeaderData Atom Count"); in EmitHeader()
129 Asm->EmitInt32(HeaderData.Atoms.size()); in EmitHeader()
132 Asm->OutStreamer->AddComment(dwarf::AtomTypeString(A.type)); in EmitHeader()
133 Asm->EmitInt16(A.type); in EmitHeader()
134 Asm->OutStreamer->AddComment(dwarf::FormEncodingString(A.form)); in EmitHeader()
135 Asm->EmitInt16(A.form); in EmitHeader()
141 void DwarfAccelTable::EmitBuckets(AsmPrinter *Asm) { in EmitBuckets() argument
144 Asm->OutStreamer->AddComment("Bucket " + Twine(i)); in EmitBuckets()
146 Asm->EmitInt32(index); in EmitBuckets()
148 Asm->EmitInt32(UINT32_MAX); in EmitBuckets()
163 void DwarfAccelTable::EmitHashes(AsmPrinter *Asm) { in EmitHashes() argument
172 Asm->OutStreamer->AddComment("Hash in Bucket " + Twine(i)); in EmitHashes()
173 Asm->EmitInt32(HashValue); in EmitHashes()
183 void DwarfAccelTable::emitOffsets(AsmPrinter *Asm, const MCSymbol *SecBegin) { in emitOffsets() argument
193 Asm->OutStreamer->AddComment("Offset in Bucket " + Twine(i)); in emitOffsets()
194 MCContext &Context = Asm->OutStreamer->getContext(); in emitOffsets()
198 Asm->OutStreamer->EmitValue(Sub, sizeof(uint32_t)); in emitOffsets()
206 void DwarfAccelTable::EmitData(AsmPrinter *Asm, DwarfDebug *D) { in EmitData() argument
215 Asm->EmitInt32(0); in EmitData()
217 Asm->OutStreamer->EmitLabel((*HI)->Sym); in EmitData()
218 Asm->OutStreamer->AddComment((*HI)->Str); in EmitData()
219 Asm->emitDwarfStringOffset((*HI)->Data.Name); in EmitData()
220 Asm->OutStreamer->AddComment("Num DIEs"); in EmitData()
221 Asm->EmitInt32((*HI)->Data.Values.size()); in EmitData()
226 Asm->EmitInt32(HD->Die->getOffset() + CU->getDebugInfoOffset()); in EmitData()
230 Asm->EmitInt16(HD->Die->getTag()); in EmitData()
231 Asm->EmitInt8(HD->Flags); in EmitData()
238 Asm->EmitInt32(0); in EmitData()
243 void DwarfAccelTable::emit(AsmPrinter *Asm, const MCSymbol *SecBegin, in emit() argument
246 EmitHeader(Asm); in emit()
249 EmitBuckets(Asm); in emit()
252 EmitHashes(Asm); in emit()
255 emitOffsets(Asm, SecBegin); in emit()
258 EmitData(Asm, D); in emit()