Lines Matching refs:Asm

96   MCSymbol *MCL = Asm->MMI->getContext().createTempSymbol();  in maybeRecordLocation()
97 Asm->OutStreamer->EmitLabel(MCL); in maybeRecordLocation()
103 : Asm(nullptr), CurFn(nullptr) { in WinCodeViewLineTables()
114 Asm = AP; in WinCodeViewLineTables()
121 assert(Asm != nullptr); in endModule()
122 Asm->OutStreamer->SwitchSection( in endModule()
123 Asm->getObjFileLowering().getCOFFDebugSymbolsSection()); in endModule()
124 Asm->EmitInt32(COFF::DEBUG_SECTION_MAGIC); in endModule()
137 Asm->OutStreamer->AddComment("File index to string table offset subsection"); in endModule()
138 Asm->EmitInt32(COFF::DEBUG_INDEX_SUBSECTION); in endModule()
140 Asm->EmitInt32(8 * NumFilenames); in endModule()
144 Asm->EmitInt32(FileNameRegistry.Infos[Filename].StartOffset); in endModule()
146 Asm->EmitInt32(0); in endModule()
150 Asm->OutStreamer->AddComment("String table"); in endModule()
151 Asm->EmitInt32(COFF::DEBUG_STRING_TABLE_SUBSECTION); in endModule()
152 Asm->EmitInt32(FileNameRegistry.LastOffset); in endModule()
154 Asm->EmitInt8(0); in endModule()
158 Asm->OutStreamer->EmitBytes(FileNameRegistry.Filenames[I]); in endModule()
159 Asm->EmitInt8(0); in endModule()
163 Asm->OutStreamer->EmitFill((-FileNameRegistry.LastOffset) % 4, 0); in endModule()
183 const MCSymbol *Fn = Asm->getSymbol(GV); in emitDebugInfoForFunction()
203 MCSymbol *SymbolsBegin = Asm->MMI->getContext().createTempSymbol(), in emitDebugInfoForFunction()
204 *SymbolsEnd = Asm->MMI->getContext().createTempSymbol(); in emitDebugInfoForFunction()
205 Asm->OutStreamer->AddComment("Symbol subsection for " + Twine(FuncName)); in emitDebugInfoForFunction()
206 Asm->EmitInt32(COFF::DEBUG_SYMBOL_SUBSECTION); in emitDebugInfoForFunction()
207 EmitLabelDiff(*Asm->OutStreamer, SymbolsBegin, SymbolsEnd); in emitDebugInfoForFunction()
208 Asm->OutStreamer->EmitLabel(SymbolsBegin); in emitDebugInfoForFunction()
210 MCSymbol *ProcSegmentBegin = Asm->MMI->getContext().createTempSymbol(), in emitDebugInfoForFunction()
211 *ProcSegmentEnd = Asm->MMI->getContext().createTempSymbol(); in emitDebugInfoForFunction()
212 EmitLabelDiff(*Asm->OutStreamer, ProcSegmentBegin, ProcSegmentEnd, 2); in emitDebugInfoForFunction()
213 Asm->OutStreamer->EmitLabel(ProcSegmentBegin); in emitDebugInfoForFunction()
215 Asm->EmitInt16(COFF::DEBUG_SYMBOL_TYPE_PROC_START); in emitDebugInfoForFunction()
218 Asm->OutStreamer->EmitFill(12, 0); in emitDebugInfoForFunction()
221 EmitLabelDiff(*Asm->OutStreamer, Fn, FI.End); in emitDebugInfoForFunction()
222 Asm->OutStreamer->EmitFill(12, 0); in emitDebugInfoForFunction()
223 Asm->OutStreamer->EmitCOFFSecRel32(Fn); in emitDebugInfoForFunction()
224 Asm->OutStreamer->EmitCOFFSectionIndex(Fn); in emitDebugInfoForFunction()
225 Asm->EmitInt8(0); in emitDebugInfoForFunction()
227 Asm->OutStreamer->EmitBytes(FuncName); in emitDebugInfoForFunction()
228 Asm->EmitInt8(0); in emitDebugInfoForFunction()
229 Asm->OutStreamer->EmitLabel(ProcSegmentEnd); in emitDebugInfoForFunction()
232 Asm->EmitInt16(0x0002); in emitDebugInfoForFunction()
233 Asm->EmitInt16(COFF::DEBUG_SYMBOL_TYPE_PROC_END); in emitDebugInfoForFunction()
235 Asm->OutStreamer->EmitLabel(SymbolsEnd); in emitDebugInfoForFunction()
237 Asm->OutStreamer->EmitFill((-FuncName.size()) % 4, 0); in emitDebugInfoForFunction()
256 Asm->OutStreamer->AddComment("Line table subsection for " + Twine(FuncName)); in emitDebugInfoForFunction()
257 Asm->EmitInt32(COFF::DEBUG_LINE_TABLE_SUBSECTION); in emitDebugInfoForFunction()
258 MCSymbol *LineTableBegin = Asm->MMI->getContext().createTempSymbol(), in emitDebugInfoForFunction()
259 *LineTableEnd = Asm->MMI->getContext().createTempSymbol(); in emitDebugInfoForFunction()
260 EmitLabelDiff(*Asm->OutStreamer, LineTableBegin, LineTableEnd); in emitDebugInfoForFunction()
261 Asm->OutStreamer->EmitLabel(LineTableBegin); in emitDebugInfoForFunction()
264 Asm->OutStreamer->EmitCOFFSecRel32(Fn); in emitDebugInfoForFunction()
265 Asm->OutStreamer->EmitCOFFSectionIndex(Fn); in emitDebugInfoForFunction()
267 Asm->EmitInt16(COFF::DEBUG_LINE_TABLES_HAVE_COLUMN_RECORDS); in emitDebugInfoForFunction()
270 EmitLabelDiff(*Asm->OutStreamer, Fn, FI.End); in emitDebugInfoForFunction()
285 Asm->EmitInt16(ColumnNumber); // Start column in emitDebugInfoForFunction()
286 Asm->EmitInt16(ColumnNumber); // End column in emitDebugInfoForFunction()
288 Asm->OutStreamer->EmitLabel(FileSegmentEnd); in emitDebugInfoForFunction()
304 Asm->OutStreamer->AddComment( in emitDebugInfoForFunction()
306 MCSymbol *FileSegmentBegin = Asm->MMI->getContext().createTempSymbol(); in emitDebugInfoForFunction()
307 Asm->OutStreamer->EmitLabel(FileSegmentBegin); in emitDebugInfoForFunction()
308 Asm->EmitInt32(8 * IndexInStringTable); in emitDebugInfoForFunction()
312 Asm->EmitInt32(SegmentLength); in emitDebugInfoForFunction()
316 FileSegmentEnd = Asm->MMI->getContext().createTempSymbol(); in emitDebugInfoForFunction()
317 EmitLabelDiff(*Asm->OutStreamer, FileSegmentBegin, FileSegmentEnd); in emitDebugInfoForFunction()
322 EmitLabelDiff(*Asm->OutStreamer, Fn, Instr); in emitDebugInfoForFunction()
323 Asm->EmitInt32(InstrInfo[Instr].LineNumber); in emitDebugInfoForFunction()
327 Asm->OutStreamer->EmitLabel(LineTableEnd); in emitDebugInfoForFunction()
333 if (!Asm || !Asm->MMI->hasDebugInfo()) in beginFunction()
371 if (!Asm || !CurFn) // We haven't created any debug info for this function. in endFunction()
382 CurFn->End = Asm->getFunctionEnd(); in endFunction()
389 if (!Asm || MI->isDebugValue() || MI->getFlag(MachineInstr::FrameSetup)) in beginInstruction()
394 maybeRecordLocation(DL, Asm->MF); in beginInstruction()