LLVM  7.0.0svn
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/Format.h"
#include "llvm/Support/Path.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 void parseV2DirFileTables (const DWARFDataExtractor &DebugLineData, uint32_t *OffsetPtr, uint64_t EndPrologueOffset, DWARFDebugLine::ContentTypeTracker &ContentTypes, std::vector< DWARFFormValue > &IncludeDirectories, std::vector< DWARFDebugLine::FileNameEntry > &FileNames)
 
static ContentDescriptors parseV5EntryFormat (const DWARFDataExtractor &DebugLineData, uint32_t *OffsetPtr, uint64_t EndPrologueOffset, DWARFDebugLine::ContentTypeTracker *ContentTypes)
 
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)
 
template<typename... Ts>
static std::string formatErrorString (char const *Fmt, const Ts &... Vals)
 
template<typename... Ts>
static Error createError (char const *Fmt, const Ts &... Vals)
 
static Error createError (char const *Msg)
 
static bool isPathAbsoluteOnWindowsOrPosix (const Twine &Path)
 
static DWARFDebugLine::SectionParser::LineToUnitMap buildLineToUnitMap (DWARFDebugLine::SectionParser::cu_range CUs, DWARFDebugLine::SectionParser::tu_range TUSections)
 

Typedef Documentation

◆ FileLineInfoKind

Definition at line 32 of file DWARFDebugLine.cpp.

Function Documentation

◆ buildLineToUnitMap()

◆ createError() [1/2]

template<typename... Ts>
static Error createError ( char const Fmt,
const Ts &...  Vals 
)
static

◆ createError() [2/2]

static Error createError ( char const Msg)
static

Definition at line 290 of file DWARFDebugLine.cpp.

References llvm::inconvertibleErrorCode().

◆ formatErrorString()

template<typename... Ts>
static std::string formatErrorString ( char const Fmt,
const Ts &...  Vals 
)
static

Definition at line 277 of file DWARFDebugLine.cpp.

References llvm::format(), and llvm::raw_string_ostream::str().

Referenced by createError().

◆ isPathAbsoluteOnWindowsOrPosix()

static bool isPathAbsoluteOnWindowsOrPosix ( const Twine Path)
static

◆ parseV2DirFileTables()

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

◆ parseV5DirFileTables()

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 
)
static

◆ parseV5EntryFormat()

static ContentDescriptors parseV5EntryFormat ( const DWARFDataExtractor DebugLineData,
uint32_t OffsetPtr,
uint64_t  EndPrologueOffset,
DWARFDebugLine::ContentTypeTracker ContentTypes 
)
static