LLVM  5.0.0
Classes | Macros | Typedefs | Functions
DWARFContext.cpp File Reference
#include "llvm/DebugInfo/DWARF/DWARFContext.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/SmallString.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/ADT/StringSwitch.h"
#include "llvm/BinaryFormat/Dwarf.h"
#include "llvm/DebugInfo/DWARF/DWARFAcceleratorTable.h"
#include "llvm/DebugInfo/DWARF/DWARFCompileUnit.h"
#include "llvm/DebugInfo/DWARF/DWARFDebugAbbrev.h"
#include "llvm/DebugInfo/DWARF/DWARFDebugArangeSet.h"
#include "llvm/DebugInfo/DWARF/DWARFDebugAranges.h"
#include "llvm/DebugInfo/DWARF/DWARFDebugFrame.h"
#include "llvm/DebugInfo/DWARF/DWARFDebugLine.h"
#include "llvm/DebugInfo/DWARF/DWARFDebugLoc.h"
#include "llvm/DebugInfo/DWARF/DWARFDebugMacro.h"
#include "llvm/DebugInfo/DWARF/DWARFDebugPubTable.h"
#include "llvm/DebugInfo/DWARF/DWARFDebugRangeList.h"
#include "llvm/DebugInfo/DWARF/DWARFDie.h"
#include "llvm/DebugInfo/DWARF/DWARFFormValue.h"
#include "llvm/DebugInfo/DWARF/DWARFGdbIndex.h"
#include "llvm/DebugInfo/DWARF/DWARFSection.h"
#include "llvm/DebugInfo/DWARF/DWARFUnitIndex.h"
#include "llvm/DebugInfo/DWARF/DWARFVerifier.h"
#include "llvm/Object/Decompressor.h"
#include "llvm/Object/MachO.h"
#include "llvm/Object/ObjectFile.h"
#include "llvm/Object/RelocVisitor.h"
#include "llvm/Support/Casting.h"
#include "llvm/Support/DataExtractor.h"
#include "llvm/Support/Error.h"
#include "llvm/Support/Format.h"
#include "llvm/Support/MemoryBuffer.h"
#include "llvm/Support/raw_ostream.h"
#include <algorithm>
#include <cstdint>
#include <map>
#include <string>
#include <tuple>
#include <utility>
#include <vector>
Include dependency graph for DWARFContext.cpp:

Go to the source code of this file.

Classes

struct  SymInfo
 SymInfo contains information about symbol: it's address and section index which is -1LL for absolute symbols. More...
 

Macros

#define DEBUG_TYPE   "dwarf"
 

Typedefs

using DWARFLineTable = DWARFDebugLine::LineTable
 
using FileLineInfoKind = DILineInfoSpecifier::FileLineInfoKind
 
using FunctionNameKind = DILineInfoSpecifier::FunctionNameKind
 

Functions

static void dumpAccelSection (raw_ostream &OS, StringRef Name, const DWARFSection &Section, StringRef StringSection, bool LittleEndian)
 
static void dumpDWARFv5StringOffsetsSection (raw_ostream &OS, StringRef SectionName, const DWARFSection &StringOffsetsSection, StringRef StringSection, bool LittleEndian)
 
static void dumpStringOffsetsSection (raw_ostream &OS, StringRef SectionName, const DWARFSection &StringOffsetsSection, StringRef StringSection, bool LittleEndian, unsigned MaxVersion)
 
static bool getFunctionNameAndStartLineForAddress (DWARFCompileUnit *CU, uint64_t Address, FunctionNameKind Kind, std::string &FunctionName, uint32_t &StartLine)
 
static Error createError (const Twine &Reason, llvm::Error E)
 
static Expected< SymInfo > getSymbolInfo (const object::ObjectFile &Obj, const RelocationRef &Reloc, const LoadedObjectInfo *L, std::map< SymbolRef, SymInfo > &Cache)
 Returns the address of symbol relocation used against and a section index. More...
 
static bool isRelocScattered (const object::ObjectFile &Obj, const RelocationRef &Reloc)
 

Macro Definition Documentation

#define DEBUG_TYPE   "dwarf"

Definition at line 56 of file DWARFContext.cpp.

Typedef Documentation

Definition at line 58 of file DWARFContext.cpp.

Definition at line 59 of file DWARFContext.cpp.

Definition at line 60 of file DWARFContext.cpp.

Function Documentation

static Error createError ( const Twine &  Reason,
llvm::Error  E 
)
static
static void dumpAccelSection ( raw_ostream &  OS,
StringRef  Name,
const DWARFSection &  Section,
StringRef  StringSection,
bool  LittleEndian 
)
static
static void dumpDWARFv5StringOffsetsSection ( raw_ostream &  OS,
StringRef  SectionName,
const DWARFSection &  StringOffsetsSection,
StringRef  StringSection,
bool  LittleEndian 
)
static
static void dumpStringOffsetsSection ( raw_ostream &  OS,
StringRef  SectionName,
const DWARFSection &  StringOffsetsSection,
StringRef  StringSection,
bool  LittleEndian,
unsigned  MaxVersion 
)
static
static bool getFunctionNameAndStartLineForAddress ( DWARFCompileUnit *  CU,
uint64_t  Address,
FunctionNameKind  Kind,
std::string &  FunctionName,
uint32_t &  StartLine 
)
static
static Expected<SymInfo> getSymbolInfo ( const object::ObjectFile &  Obj,
const RelocationRef &  Reloc,
const LoadedObjectInfo *  L,
std::map< SymbolRef, SymInfo > &  Cache 
)
static
static bool isRelocScattered ( const object::ObjectFile &  Obj,
const RelocationRef &  Reloc 
)
static

Definition at line 898 of file DWARFContext.cpp.

References llvm::dyn_cast().

Referenced by llvm::DWARFContextInMemory::DWARFContextInMemory().