LLVM  14.0.0git
Typedefs | Functions
DWARFDebugLine.cpp File Reference
#include "llvm/DebugInfo/DWARF/DWARFDebugLine.h"
#include "llvm/ADT/Optional.h"
#include "llvm/ADT/SmallString.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/BinaryFormat/Dwarf.h"
#include "llvm/DebugInfo/DWARF/DWARFFormValue.h"
#include "llvm/DebugInfo/DWARF/DWARFRelocMap.h"
#include "llvm/Support/Errc.h"
#include "llvm/Support/Format.h"
#include "llvm/Support/FormatVariadic.h"
#include "llvm/Support/WithColor.h"
#include "llvm/Support/raw_ostream.h"
#include <algorithm>
#include <cassert>
#include <cinttypes>
#include <cstdint>
#include <cstdio>
#include <utility>
Include dependency graph for DWARFDebugLine.cpp:

Go to the source code of this file.

Typedefs

using FileLineInfoKind = DILineInfoSpecifier::FileLineInfoKind
 

Functions

static bool versionIsSupported (uint16_t Version)
 
static Error parseV2DirFileTables (const DWARFDataExtractor &DebugLineData, uint64_t *OffsetPtr, DWARFDebugLine::ContentTypeTracker &ContentTypes, std::vector< DWARFFormValue > &IncludeDirectories, std::vector< DWARFDebugLine::FileNameEntry > &FileNames)
 
static llvm::Expected< ContentDescriptors > parseV5EntryFormat (const DWARFDataExtractor &DebugLineData, uint64_t *OffsetPtr, DWARFDebugLine::ContentTypeTracker *ContentTypes)
 
static Error parseV5DirFileTables (const DWARFDataExtractor &DebugLineData, uint64_t *OffsetPtr, const dwarf::FormParams &FormParams, const DWARFContext &Ctx, const DWARFUnit *U, DWARFDebugLine::ContentTypeTracker &ContentTypes, std::vector< DWARFFormValue > &IncludeDirectories, std::vector< DWARFDebugLine::FileNameEntry > &FileNames)
 
static StringRef getOpcodeName (uint8_t Opcode, uint8_t OpcodeBase)
 
template<typename T >
static Optional< TparseULEB128 (DWARFDataExtractor &Data, DataExtractor::Cursor &Cursor)
 Parse a ULEB128 using the specified Cursor. More...
 
static bool isPathAbsoluteOnWindowsOrPosix (const Twine &Path)
 
static DWARFDebugLine::SectionParser::LineToUnitMap buildLineToUnitMap (DWARFUnitVector::iterator_range Units)
 

Typedef Documentation

◆ FileLineInfoKind

Definition at line 32 of file DWARFDebugLine.cpp.

Function Documentation

◆ buildLineToUnitMap()

◆ getOpcodeName()

static StringRef getOpcodeName ( uint8_t  Opcode,
uint8_t  OpcodeBase 
)
static

Definition at line 600 of file DWARFDebugLine.cpp.

References assert(), and llvm::dwarf::LNStandardString().

◆ isPathAbsoluteOnWindowsOrPosix()

static bool isPathAbsoluteOnWindowsOrPosix ( const Twine Path)
static

◆ parseULEB128()

template<typename T >
static Optional<T> parseULEB128 ( DWARFDataExtractor Data,
DataExtractor::Cursor Cursor 
)
static

Parse a ULEB128 using the specified Cursor.

Returns
the parsed value on success, or None if Cursor is in a failing state.

Definition at line 716 of file DWARFDebugLine.cpp.

References llvm::Data, and llvm::None.

◆ parseV2DirFileTables()

static Error parseV2DirFileTables ( const DWARFDataExtractor DebugLineData,
uint64_t OffsetPtr,
DWARFDebugLine::ContentTypeTracker ContentTypes,
std::vector< DWARFFormValue > &  IncludeDirectories,
std::vector< DWARFDebugLine::FileNameEntry > &  FileNames 
)
static

Definition at line 183 of file DWARFDebugLine.cpp.

Referenced by llvm::DWARFDebugLine::Prologue::parse().

◆ parseV5DirFileTables()

static Error parseV5DirFileTables ( const DWARFDataExtractor DebugLineData,
uint64_t OffsetPtr,
const dwarf::FormParams FormParams,
const DWARFContext Ctx,
const DWARFUnit U,
DWARFDebugLine::ContentTypeTracker ContentTypes,
std::vector< DWARFFormValue > &  IncludeDirectories,
std::vector< DWARFDebugLine::FileNameEntry > &  FileNames 
)
static

◆ parseV5EntryFormat()

static llvm::Expected<ContentDescriptors> parseV5EntryFormat ( const DWARFDataExtractor DebugLineData,
uint64_t OffsetPtr,
DWARFDebugLine::ContentTypeTracker ContentTypes 
)
static

Definition at line 237 of file DWARFDebugLine.cpp.

Referenced by parseV5DirFileTables().

◆ versionIsSupported()

static bool versionIsSupported ( uint16_t  Version)
static