30 using namespace dwarf;
36 struct ContentDescriptor {
47 switch (ContentType) {
48 case dwarf::DW_LNCT_timestamp:
51 case dwarf::DW_LNCT_size:
54 case dwarf::DW_LNCT_MD5:
57 case dwarf::DW_LNCT_LLVM_source:
70 TotalLength = PrologueLength = 0;
72 MinInstLength = MaxOpsPerInst = DefaultIsStmt = LineBase = LineRange = 0;
76 StandardOpcodeLengths.clear();
77 IncludeDirectories.clear();
83 OS <<
"Line table prologue:\n" 84 <<
format(
" total_length: 0x%8.8" PRIx64
"\n", TotalLength)
85 <<
format(
" version: %u\n", getVersion());
86 if (getVersion() >= 5)
87 OS <<
format(
" address_size: %u\n", getAddressSize())
88 <<
format(
" seg_select_size: %u\n", SegSelectorSize);
89 OS <<
format(
" prologue_length: 0x%8.8" PRIx64
"\n", PrologueLength)
90 <<
format(
" min_inst_length: %u\n", MinInstLength)
91 <<
format(getVersion() >= 4 ?
"max_ops_per_inst: %u\n" :
"", MaxOpsPerInst)
92 <<
format(
" default_is_stmt: %u\n", DefaultIsStmt)
93 <<
format(
" line_base: %i\n", LineBase)
94 <<
format(
" line_range: %u\n", LineRange)
95 <<
format(
" opcode_base: %u\n", OpcodeBase);
97 for (
uint32_t I = 0;
I != StandardOpcodeLengths.size(); ++
I)
98 OS <<
format(
"standard_opcode_lengths[%s] = %u\n",
101 if (!IncludeDirectories.empty()) {
103 uint32_t DirBase = getVersion() >= 5 ? 0 : 1;
104 for (
uint32_t I = 0;
I != IncludeDirectories.size(); ++
I) {
105 OS <<
format(
"include_directories[%3u] = ",
I + DirBase);
106 IncludeDirectories[
I].dump(OS, DumpOptions);
111 if (!FileNames.empty()) {
113 uint32_t FileBase = getVersion() >= 5 ? 0 : 1;
116 OS <<
format(
"file_names[%3u]:\n",
I + FileBase);
118 FileEntry.
Name.
dump(OS, DumpOptions);
120 <<
format(
" dir_index: %" PRIu64
"\n", FileEntry.
DirIdx);
121 if (ContentTypes.HasMD5)
123 if (ContentTypes.HasModTime)
124 OS <<
format(
" mod_time: 0x%8.8" PRIx64
"\n", FileEntry.
ModTime);
125 if (ContentTypes.HasLength)
126 OS <<
format(
" length: 0x%8.8" PRIx64
"\n", FileEntry.
Length);
127 if (ContentTypes.HasSource) {
139 uint32_t *OffsetPtr, uint64_t EndPrologueOffset,
141 std::vector<DWARFFormValue> &IncludeDirectories,
142 std::vector<DWARFDebugLine::FileNameEntry> &FileNames) {
143 while (*OffsetPtr < EndPrologueOffset) {
149 IncludeDirectories.push_back(Dir);
152 while (*OffsetPtr < EndPrologueOffset) {
162 FileNames.push_back(FileEntry);
172 static ContentDescriptors
176 ContentDescriptors Descriptors;
177 int FormatCount = DebugLineData.
getU8(OffsetPtr);
178 bool HasPath =
false;
179 for (
int I = 0;
I != FormatCount; ++
I) {
180 if (*OffsetPtr >= EndPrologueOffset)
181 return ContentDescriptors();
182 ContentDescriptor Descriptor;
186 if (Descriptor.Type == dwarf::DW_LNCT_path)
190 Descriptors.push_back(Descriptor);
192 return HasPath ? Descriptors : ContentDescriptors();
197 uint32_t *OffsetPtr, uint64_t EndPrologueOffset,
201 std::vector<DWARFFormValue> &IncludeDirectories,
202 std::vector<DWARFDebugLine::FileNameEntry> &FileNames) {
204 ContentDescriptors DirDescriptors =
206 if (DirDescriptors.empty())
210 int DirEntryCount = DebugLineData.
getU8(OffsetPtr);
211 for (
int I = 0;
I != DirEntryCount; ++
I) {
212 if (*OffsetPtr >= EndPrologueOffset)
214 for (
auto Descriptor : DirDescriptors) {
216 switch (Descriptor.Type) {
218 if (!Value.
extractValue(DebugLineData, OffsetPtr, FormParams, &Ctx, U))
220 IncludeDirectories.push_back(Value);
223 if (!Value.
skipValue(DebugLineData, OffsetPtr, FormParams))
230 ContentDescriptors FileDescriptors =
233 if (FileDescriptors.empty())
237 int FileEntryCount = DebugLineData.
getU8(OffsetPtr);
238 for (
int I = 0;
I != FileEntryCount; ++
I) {
239 if (*OffsetPtr >= EndPrologueOffset)
242 for (
auto Descriptor : FileDescriptors) {
244 if (!Value.
extractValue(DebugLineData, OffsetPtr, FormParams, &Ctx, U))
246 switch (Descriptor.Type) {
248 FileEntry.
Name = Value;
250 case DW_LNCT_LLVM_source:
253 case DW_LNCT_directory_index:
256 case DW_LNCT_timestamp:
264 std::uninitialized_copy_n(Value.
getAsBlock().getValue().begin(), 16,
271 FileNames.push_back(FileEntry);
276 template <
typename... Ts>
280 Stream <<
format(Fmt, Vals...);
284 template <
typename... Ts>
298 const uint64_t PrologueOffset = *OffsetPtr;
301 TotalLength = DebugLineData.
getU32(OffsetPtr);
302 if (TotalLength == UINT32_MAX) {
304 TotalLength = DebugLineData.
getU64(OffsetPtr);
305 }
else if (TotalLength >= 0xffffff00) {
307 "parsing line table prologue at offset 0x%8.8" PRIx64
308 " unsupported reserved unit length found of value 0x%8.8" PRIx64,
309 PrologueOffset, TotalLength);
312 if (getVersion() < 2)
313 return createError(
"parsing line table prologue at offset 0x%8.8" PRIx64
314 " found unsupported version 0x%2.2" PRIx16,
315 PrologueOffset, getVersion());
317 if (getVersion() >= 5) {
321 "Line table header and data extractor disagree");
322 SegSelectorSize = DebugLineData.
getU8(OffsetPtr);
325 PrologueLength = DebugLineData.
getUnsigned(OffsetPtr, sizeofPrologueLength());
326 const uint64_t EndPrologueOffset = PrologueLength + *OffsetPtr;
327 MinInstLength = DebugLineData.
getU8(OffsetPtr);
328 if (getVersion() >= 4)
329 MaxOpsPerInst = DebugLineData.
getU8(OffsetPtr);
330 DefaultIsStmt = DebugLineData.
getU8(OffsetPtr);
331 LineBase = DebugLineData.
getU8(OffsetPtr);
332 LineRange = DebugLineData.
getU8(OffsetPtr);
333 OpcodeBase = DebugLineData.
getU8(OffsetPtr);
335 StandardOpcodeLengths.reserve(OpcodeBase - 1);
337 uint8_t OpLen = DebugLineData.
getU8(OffsetPtr);
338 StandardOpcodeLengths.push_back(OpLen);
341 if (getVersion() >= 5) {
344 IncludeDirectories, FileNames)) {
346 "parsing line table prologue at 0x%8.8" PRIx64
347 " found an invalid directory or file table description at" 349 PrologueOffset, (uint64_t)*OffsetPtr);
353 ContentTypes, IncludeDirectories, FileNames);
355 if (*OffsetPtr != EndPrologueOffset)
356 return createError(
"parsing line table prologue at 0x%8.8" PRIx64
357 " should have ended at 0x%8.8" PRIx64
358 " but it ended at 0x%8.8" PRIx64,
359 PrologueOffset, EndPrologueOffset, (uint64_t)*OffsetPtr);
368 EpilogueBegin =
false;
378 IsStmt = DefaultIsStmt;
382 EpilogueBegin =
false;
386 OS <<
"Address Line Column File ISA Discriminator Flags\n" 387 <<
"------------------ ------ ------ ------ --- ------------- " 392 OS <<
format(
"0x%16.16" PRIx64
" %6u %6u",
Address, Line, Column)
393 <<
format(
" %6u %3u %13u ",
File, Isa, Discriminator)
394 << (IsStmt ?
" is_stmt" :
"") << (
BasicBlock ?
" basic_block" :
"")
395 << (PrologueEnd ?
" prologue_end" :
"")
396 << (EpilogueBegin ?
" epilogue_begin" :
"")
397 << (EndSequence ?
" end_sequence" :
"") <<
'\n';
418 Row::dumpTableHeader(OS);
419 for (
const Row &R : Rows) {
431 DWARFDebugLine::ParsingState::ParsingState(
struct LineTable *
LT)
433 resetRowAndSequence();
436 void DWARFDebugLine::ParsingState::resetRowAndSequence() {
441 void DWARFDebugLine::ParsingState::appendRowToMatrix(
uint32_t Offset) {
463 LineTableConstIter Pos = LineTableMap.find(Offset);
464 if (Pos != LineTableMap.end())
474 " is not a valid debug line section offset",
477 std::pair<LineTableIter, bool> Pos =
478 LineTableMap.insert(LineTableMapTy::value_type(Offset,
LineTable()));
482 LT->
parse(DebugLineData, &Offset, Ctx, U, RecoverableErrorCallback))
483 return std::move(Err);
493 const uint32_t DebugLineOffset = *OffsetPtr;
519 ParsingState State(
this);
521 while (*OffsetPtr < EndOffset) {
523 *OS <<
format(
"0x%08.08" PRIx32
": ", *OffsetPtr);
525 uint8_t Opcode = DebugLineData.
getU8(OffsetPtr);
528 *OS <<
format(
"%02.02" PRIx8
" ", Opcode);
533 uint64_t Len = DebugLineData.
getULEB128(OffsetPtr);
539 *OS <<
"Badly formed extended line op (length 0)\n";
543 uint8_t SubOpcode = DebugLineData.
getU8(OffsetPtr);
547 case DW_LNE_end_sequence:
555 State.Row.EndSequence =
true;
556 State.appendRowToMatrix(*OffsetPtr);
562 State.resetRowAndSequence();
565 case DW_LNE_set_address:
578 return createError(
"mismatching address size at offset 0x%8.8" PRIx32
579 " expected 0x%2.2" PRIx8
" found 0x%2.2" PRIx64,
585 *OS <<
format(
" (0x%16.16" PRIx64
")", State.Row.Address);
588 case DW_LNE_define_file:
611 const char *
Name = DebugLineData.
getCStr(OffsetPtr);
619 *OS <<
" (" << Name <<
", dir=" << FileEntry.
DirIdx <<
", mod_time=" 621 <<
", length=" << FileEntry.
Length <<
")";
625 case DW_LNE_set_discriminator:
626 State.Row.Discriminator = DebugLineData.
getULEB128(OffsetPtr);
628 *OS <<
" (" << State.Row.Discriminator <<
")";
633 *OS <<
format(
"Unrecognized extended op 0x%02.02" PRIx8, SubOpcode)
634 <<
format(
" length %" PRIx64, Len);
637 (*OffsetPtr) += Len - 1;
642 if (*OffsetPtr - ExtOffset != Len)
643 return createError(
"unexpected line op length at offset 0x%8.8" PRIx32
644 " expected 0x%2.2" PRIx64
" found 0x%2.2" PRIx32,
645 ExtOffset, Len, *OffsetPtr - ExtOffset);
655 State.appendRowToMatrix(*OffsetPtr);
664 case DW_LNS_advance_pc:
669 uint64_t AddrOffset =
671 State.Row.Address += AddrOffset;
673 *OS <<
" (" << AddrOffset <<
")";
677 case DW_LNS_advance_line:
680 State.Row.Line += DebugLineData.
getSLEB128(OffsetPtr);
682 *OS <<
" (" << State.Row.Line <<
")";
685 case DW_LNS_set_file:
688 State.Row.File = DebugLineData.
getULEB128(OffsetPtr);
690 *OS <<
" (" << State.Row.File <<
")";
693 case DW_LNS_set_column:
696 State.Row.Column = DebugLineData.
getULEB128(OffsetPtr);
698 *OS <<
" (" << State.Row.Column <<
")";
701 case DW_LNS_negate_stmt:
704 State.Row.IsStmt = !State.Row.IsStmt;
707 case DW_LNS_set_basic_block:
710 State.Row.BasicBlock =
true;
713 case DW_LNS_const_add_pc:
727 uint64_t AddrOffset =
729 State.Row.Address += AddrOffset;
732 <<
format(
" (0x%16.16" PRIx64
")", AddrOffset);
736 case DW_LNS_fixed_advance_pc:
747 uint16_t PCOffset = DebugLineData.
getU16(OffsetPtr);
748 State.Row.Address += PCOffset;
751 <<
format(
" (0x%16.16" PRIx64
")", PCOffset);
755 case DW_LNS_set_prologue_end:
758 State.Row.PrologueEnd =
true;
761 case DW_LNS_set_epilogue_begin:
764 State.Row.EpilogueBegin =
true;
770 State.Row.Isa = DebugLineData.
getULEB128(OffsetPtr);
772 *OS <<
" (" << State.Row.Isa <<
")";
782 for (uint8_t
I = 0;
I < OpcodeLength; ++
I) {
785 *OS <<
format(
"Skipping ULEB128 value: 0x%16.16" PRIx64
")\n",
826 uint64_t AddrOffset =
830 State.Row.Line += LineOffset;
831 State.Row.Address += AddrOffset;
834 *OS <<
"address += " << ((
uint32_t)AdjustOpcode)
835 <<
", line += " << LineOffset <<
"\n";
840 State.appendRowToMatrix(*OffsetPtr);
842 State.Row.Discriminator = 0;
848 if (!State.Sequence.Empty)
849 RecoverableErrorCallback(
850 createError(
"last sequence in debug line table is not terminated!"));
853 if (!Sequences.empty()) {
854 llvm::sort(Sequences.begin(), Sequences.end(), Sequence::orderByLowPC);
870 return UnknownRowIndex;
880 if (RowPos == LastRow) {
884 if (RowPos->Address > Address) {
885 if (RowPos == FirstRow)
886 return UnknownRowIndex;
894 if (Sequences.empty())
895 return UnknownRowIndex;
898 Sequence.
LowPC = Address;
904 if (SeqPos == LastSeq) {
905 FoundSeq = Sequences.back();
906 }
else if (SeqPos->LowPC == Address) {
909 if (SeqPos == FirstSeq)
910 return UnknownRowIndex;
911 FoundSeq = *(SeqPos - 1);
913 return findRowInSeq(FoundSeq, Address);
917 uint64_t Address, uint64_t
Size, std::vector<uint32_t> &Result)
const {
918 if (Sequences.empty())
920 uint64_t EndAddr = Address +
Size;
923 Sequence.
LowPC = Address;
928 if (SeqPos == LastSeq || SeqPos->LowPC != Address) {
929 if (SeqPos == FirstSeq)
933 if (!SeqPos->containsPC(Address))
941 while (SeqPos != LastSeq && SeqPos->LowPC < EndAddr) {
946 if (SeqPos == StartPos)
947 FirstRowIndex = findRowInSeq(CurSeq, Address);
950 uint32_t LastRowIndex = findRowInSeq(CurSeq, EndAddr - 1);
951 if (LastRowIndex == UnknownRowIndex)
954 assert(FirstRowIndex != UnknownRowIndex);
955 assert(LastRowIndex != UnknownRowIndex);
957 for (
uint32_t I = FirstRowIndex;
I <= LastRowIndex; ++
I) {
992 std::string &Result)
const {
997 if (Kind != FileLineInfoKind::AbsoluteFilePath ||
1004 uint64_t IncludeDirIndex = Entry.
DirIdx;
1007 if (IncludeDirIndex > 0 &&
1016 if (CompDir && Kind == FileLineInfoKind::AbsoluteFilePath &&
1022 Result = FilePath.
str();
1030 uint32_t RowIndex = lookupAddress(Address);
1031 if (RowIndex == -1U)
1034 const auto &
Row = Rows[RowIndex];
1052 for (
const auto &
CU : CUs)
1053 if (
auto CUDIE =
CU->getUnitDIE())
1055 LineToUnit.insert(std::make_pair(*StmtOffset, &*
CU));
1056 for (
const auto &TUS : TUSections)
1057 for (
const auto &TU : TUS)
1058 if (
auto TUDIE = TU->getUnitDIE())
1060 LineToUnit.insert(std::make_pair(*StmtOffset, &*TU));
1067 : DebugLineData(Data),
Context(C) {
1074 return TotalLength == 0xffffffff || TotalLength < 0xffffff00;
1081 "parsing should have terminated");
1085 if (
Error Err = LT.
parse(DebugLineData, &Offset, Context, U,
1086 RecoverableErrorCallback, OS))
1087 UnrecoverableErrorCallback(std::move(Err));
1088 moveToNextTable(OldOffset, LT.
Prologue);
1095 "parsing should have terminated");
1100 ErrorCallback(std::move(Err));
1101 moveToNextTable(OldOffset, LT.
Prologue);
1106 auto It = LineToUnit.find(Offset);
1107 if (It != LineToUnit.end())
1113 void DWARFDebugLine::SectionParser::moveToNextTable(
uint32_t OldOffset,
SequenceVector::const_iterator SequenceIter
Optional< StringRef > Source
static void warn(Error Err)
Helper function for DWARFDebugLine parse functions, to report issues identified during parsing...
uint64_t LowPC
Sequence describes instructions at address range [LowPC, HighPC) and is described by line table rows ...
uint8_t getAddressSize() const
Compute iterated dominance frontiers using a linear time algorithm.
Row(bool DefaultIsStmt=false)
uint32_t sizeofTotalLength() const
SmallString< 32 > digest() const
StringRef LNExtendedString(unsigned Encoding)
static bool orderByAddress(const Row &LHS, const Row &RHS)
StringRef LNStandardString(unsigned Standard)
format_object< Ts... > format(const char *Fmt, const Ts &... Vals)
These are helper functions used to produce formatted output.
raw_ostream & indent(unsigned NumSpaces)
indent - Insert 'NumSpaces' spaces.
uint8_t MinInstLength
The size in bytes of the smallest target machine instruction.
An efficient, type-erasing, non-owning reference to a callable.
uint32_t Line
An unsigned integer indicating a source line number.
static DWARFDebugLine::SectionParser::LineToUnitMap buildLineToUnitMap(DWARFDebugLine::SectionParser::cu_range CUs, DWARFDebugLine::SectionParser::tu_range TUSections)
virtual std::string message() const
Return the error message as a string.
SectionParser(DWARFDataExtractor &Data, const DWARFContext &C, cu_range CUs, tu_range TUs)
static raw_ostream & warning()
Convenience method for printing "warning: " to stderr.
void dump(raw_ostream &OS, DIDumpOptions DumpOptions) const
Base class for error info classes.
Error parse(const DWARFDataExtractor &DebugLineData, uint32_t *OffsetPtr, const DWARFContext &Ctx, const DWARFUnit *U=nullptr)
LLVM_NODISCARD LLVM_ATTRIBUTE_ALWAYS_INLINE const char * data() const
data - Get a pointer to the start of the string (which may not be null terminated).
std::vector< DWARFFormValue > IncludeDirectories
A format-neutral container for source line information.
void append(SmallVectorImpl< char > &path, const Twine &a, const Twine &b="", const Twine &c="", const Twine &d="")
Append to path.
Twine - A lightweight data structure for efficiently representing the concatenation of temporary valu...
Represents a series of contiguous machine instructions.
uint64_t Address
The program-counter value corresponding to a machine instruction generated by the compiler...
bool hasFileAtIndex(uint64_t FileIndex) const
Expected< const LineTable * > getOrParseLineTable(DWARFDataExtractor &DebugLineData, uint32_t Offset, const DWARFContext &Ctx, const DWARFUnit *U, std::function< void(Error)> RecoverableErrorCallback=warn)
void postAppend()
Called after a row is appended to the matrix.
bool is_absolute(const Twine &path, Style style=Style::native)
Is path absolute?
Tagged union holding either a T or a Error.
static std::string formatErrorString(char const *Fmt, const Ts &... Vals)
uint32_t lookupAddress(uint64_t Address) const
Returns the index of the row with file/line info for a given address, or UnknownRowIndex if there is ...
uint8_t LineRange
This parameter affects the meaning of the special opcodes. See below.
uint8_t getAddressByteSize() const
StringRef str() const
Explicit conversion to StringRef.
uint8_t OpcodeBase
The number assigned to the first special opcode.
void reset(bool DefaultIsStmt)
const T & getValue() const LLVM_LVALUE_FUNCTION
LLVM_NODISCARD LLVM_ATTRIBUTE_ALWAYS_INLINE bool empty() const
empty - Check if the string is empty.
uint64_t TotalLength
The size in bytes of the statement information for this compilation unit (not including the total_len...
SmallString - A SmallString is just a SmallVector with methods and accessors that make it work better...
auto lower_bound(R &&Range, ForwardIt I) -> decltype(adl_begin(Range))
Provide wrappers to std::lower_bound which take ranges instead of having to pass begin/end explicitly...
bool HasModTime
Whether filename entries provide a modification timestamp.
Container for dump options that control which debug information will be dumped.
Optional< uint64_t > toSectionOffset(const Optional< DWARFFormValue > &V)
Take an optional DWARFFormValue and try to extract an section offset.
uint8_t EndSequence
A boolean indicating that the current address is that of the first byte after the end of a sequence o...
Error parse(DWARFDataExtractor &DebugLineData, uint32_t *OffsetPtr, const DWARFContext &Ctx, const DWARFUnit *U, std::function< void(Error)> RecoverableErrorCallback=warn, raw_ostream *OS=nullptr)
Parse prologue and all rows.
* if(!EatIfPresent(lltok::kw_thread_local)) return false
ParseOptionalThreadLocal := /*empty.
void dump(raw_ostream &OS) const
LLVM Basic Block Representation.
uint16_t File
An unsigned integer indicating the identity of the source file corresponding to a machine instruction...
bool totalLengthIsValid() const
bool HasLength
Whether filename entries provide a file size.
static ContentDescriptors parseV5EntryFormat(const DWARFDataExtractor &DebugLineData, uint32_t *OffsetPtr, uint64_t EndPrologueOffset, DWARFDebugLine::ContentTypeTracker *ContentTypes)
void skip(function_ref< void(Error)> ErrorCallback=warn)
Skip the current line table and go to the following line table (if present) immediately.
void appendSequence(const DWARFDebugLine::Sequence &S)
void dump(raw_ostream &OS, DIDumpOptions DumpOptions) const
std::string & str()
Flushes the stream contents to the target string and returns the string's reference.
Standard .debug_line state machine structure.
void sort(IteratorTy Start, IteratorTy End)
bool lookupAddressRange(uint64_t Address, uint64_t Size, std::vector< uint32_t > &Result) const
bool containsPC(uint64_t PC) const
static Error createError(char const *Fmt, const Ts &... Vals)
void handleAllErrors(Error E, HandlerTs &&... Handlers)
Behaves the same as handleErrors, except that by contract all errors must be handled by the given han...
static bool parseV5DirFileTables(const DWARFDataExtractor &DebugLineData, uint32_t *OffsetPtr, uint64_t EndPrologueOffset, const dwarf::FormParams &FormParams, const DWARFContext &Ctx, const DWARFUnit *U, DWARFDebugLine::ContentTypeTracker &ContentTypes, std::vector< DWARFFormValue > &IncludeDirectories, std::vector< DWARFDebugLine::FileNameEntry > &FileNames)
uint16_t Column
An unsigned integer indicating a column number within a source line.
static ErrorSuccess success()
Create a success value.
std::map< uint64_t, DWARFUnit * > LineToUnitMap
bool getFileLineInfoForAddress(uint64_t Address, const char *CompDir, DILineInfoSpecifier::FileLineInfoKind Kind, DILineInfo &Result) const
Fills the Result argument with the file and line information corresponding to Address.
This is a 'vector' (really, a variable-sized array), optimized for the case when the array is small...
void appendRow(const DWARFDebugLine::Row &R)
DWARFContext This data structure is the top level entity that deals with dwarf debug information pars...
static void dumpTableHeader(raw_ostream &OS)
std::vector< uint8_t > StandardOpcodeLengths
A range adaptor for a pair of iterators.
This file contains constants used for implementing Dwarf debug support.
static void clear(coro::Shape &Shape)
Tracks which optional content types are present in a DWARF file name entry format.
std::vector< FileNameEntry > FileNames
uint32_t Discriminator
An unsigned integer representing the DWARF path discriminator value for this location.
RowVector::const_iterator RowIter
static bool orderByLowPC(const Sequence &LHS, const Sequence &RHS)
Sequence
A sequence of states that a pointer may go through in which an objc_retain and objc_release are actua...
uint8_t DefaultIsStmt
The initial value of theis_stmtregister.
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
LineTable parseNext(function_ref< void(Error)> RecoverableErrorCallback=warn, function_ref< void(Error)> UnrecoverableErrorCallback=warn, raw_ostream *OS=nullptr)
Get the next line table from the section.
std::array< uint8_t, 16 > Bytes
static bool isPathAbsoluteOnWindowsOrPosix(const Twine &Path)
A raw_ostream that writes to an std::string.
int8_t LineBase
This parameter affects the meaning of the special opcodes. See below.
bool getFileNameByIndex(uint64_t FileIndex, const char *CompDir, DILineInfoSpecifier::FileLineInfoKind Kind, std::string &Result) const
Extracts filename by its index in filename table in prologue.
const LineTable * getLineTable(uint32_t Offset) const
LLVM Value Representation.
constexpr char Size[]
Key for Kernel::Arg::Metadata::mSize.
Lightweight error class with error context and mandatory checking.
This class implements an extremely fast bulk output stream that can only output to a stream...
static void parseV2DirFileTables(const DWARFDataExtractor &DebugLineData, uint32_t *OffsetPtr, uint64_t EndPrologueOffset, DWARFDebugLine::ContentTypeTracker &ContentTypes, std::vector< DWARFFormValue > &IncludeDirectories, std::vector< DWARFDebugLine::FileNameEntry > &FileNames)
print Print MemDeps of function
StringRef - Represent a constant reference to a string, i.e.
void trackContentType(dwarf::LineNumberEntryFormat ContentType)
Update tracked content types with ContentType.
std::error_code inconvertibleErrorCode()
The value returned by this function can be returned from convertToErrorCode for Error values where no...