Lines Matching +full:loc +full:- +full:code

1 //===-- AsmPrinterDwarf.cpp - AsmPrinter Dwarf Support --------------------===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
11 //===----------------------------------------------------------------------===//
29 #define DEBUG_TYPE "asm-printer"
31 //===----------------------------------------------------------------------===//
33 //===----------------------------------------------------------------------===//
86 /// EmitEncodingByte - Emit a .byte 42 directive that corresponds to an
93 OutStreamer->AddComment(Twine(Desc) + " Encoding = " + in emitEncodingByte()
96 OutStreamer->AddComment(Twine("Encoding = ") + DecodeDWARFEncoding(Val)); in emitEncodingByte()
99 OutStreamer->emitIntValue(Val, 1); in emitEncodingByte()
102 /// GetSizeOfEncodedValue - Return the size of the encoding in bytes.
111 return MAI->getCodePointerSize(); in GetSizeOfEncodedValue()
127 OutStreamer->emitValue(Exp, GetSizeOfEncodedValue(Encoding)); in emitTTypeReference()
129 OutStreamer->emitIntValue(0, GetSizeOfEncodedValue(Encoding)); in emitTTypeReference()
136 if (MAI->needsDwarfSectionOffsetDirective()) { in emitDwarfSymbolReference()
139 OutStreamer->emitCOFFSecRel32(Label, /*Offset=*/0); in emitDwarfSymbolReference()
145 OutStreamer->emitSymbolValue(Label, getDwarfOffsetByteSize()); in emitDwarfSymbolReference()
151 emitLabelDifference(Label, Label->getSection().getBeginSymbol(), in emitDwarfSymbolReference()
163 OutStreamer->emitIntValue(S.Offset, getDwarfOffsetByteSize()); in emitDwarfStringOffset()
172 OutStreamer->emitIntValue(Value, getDwarfOffsetByteSize()); in emitDwarfLengthOrOffset()
177 OutStreamer->emitDwarfUnitLength(Length, Comment); in emitDwarfUnitLength()
182 return OutStreamer->emitDwarfUnitLength(Prefix, Comment); in emitDwarfUnitLength()
199 OutStreamer->emitIntValue(Value, GetSizeOfEncodedValue(Encoding)); in emitCallSiteValue()
202 //===----------------------------------------------------------------------===//
204 //===----------------------------------------------------------------------===//
207 SMLoc Loc = Inst.getLoc(); in emitCFIInstruction() local
212 OutStreamer->emitCFIDefCfaOffset(Inst.getOffset(), Loc); in emitCFIInstruction()
215 OutStreamer->emitCFIAdjustCfaOffset(Inst.getOffset(), Loc); in emitCFIInstruction()
218 OutStreamer->emitCFIDefCfa(Inst.getRegister(), Inst.getOffset(), Loc); in emitCFIInstruction()
221 OutStreamer->emitCFIDefCfaRegister(Inst.getRegister(), Loc); in emitCFIInstruction()
224 OutStreamer->emitCFILLVMDefAspaceCfa(Inst.getRegister(), Inst.getOffset(), in emitCFIInstruction()
225 Inst.getAddressSpace(), Loc); in emitCFIInstruction()
228 OutStreamer->emitCFIOffset(Inst.getRegister(), Inst.getOffset(), Loc); in emitCFIInstruction()
231 OutStreamer->emitCFIRegister(Inst.getRegister(), Inst.getRegister2(), Loc); in emitCFIInstruction()
234 OutStreamer->emitCFIWindowSave(Loc); in emitCFIInstruction()
237 OutStreamer->emitCFINegateRAState(Loc); in emitCFIInstruction()
240 OutStreamer->emitCFISameValue(Inst.getRegister(), Loc); in emitCFIInstruction()
243 OutStreamer->emitCFIGnuArgsSize(Inst.getOffset(), Loc); in emitCFIInstruction()
246 OutStreamer->AddComment(Inst.getComment()); in emitCFIInstruction()
247 OutStreamer->emitCFIEscape(Inst.getValues(), Loc); in emitCFIInstruction()
250 OutStreamer->emitCFIRestore(Inst.getRegister(), Loc); in emitCFIInstruction()
253 OutStreamer->emitCFIUndefined(Inst.getRegister(), Loc); in emitCFIInstruction()
256 OutStreamer->emitCFIRememberState(Loc); in emitCFIInstruction()
259 OutStreamer->emitCFIRestoreState(Loc); in emitCFIInstruction()
265 // Emit the code (index) for the abbreviation. in emitDwarfDIE()
267 OutStreamer->AddComment("Abbrev [" + Twine(Die.getAbbrevNumber()) + "] 0x" + in emitDwarfDIE()
279 OutStreamer->AddComment(dwarf::AttributeString(Attr)); in emitDwarfDIE()
281 OutStreamer->AddComment( in emitDwarfDIE()
294 OutStreamer->AddComment("End Of Children Mark"); in emitDwarfDIE()
300 // Emit the abbreviations code (base 1 index.) in emitDwarfAbbrev()
301 emitULEB128(Abbrev.getNumber(), "Abbreviation Code"); in emitDwarfAbbrev()