LLVM  12.0.0git
Typedefs | Functions
DWARFEmitter.cpp File Reference

The DWARF component of yaml2obj. More...

#include "llvm/ObjectYAML/DWARFEmitter.h"
#include "DWARFVisitor.h"
#include "llvm/ADT/StringMap.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/BinaryFormat/Dwarf.h"
#include "llvm/ObjectYAML/DWARFYAML.h"
#include "llvm/Support/Errc.h"
#include "llvm/Support/Error.h"
#include "llvm/Support/Host.h"
#include "llvm/Support/LEB128.h"
#include "llvm/Support/MathExtras.h"
#include "llvm/Support/MemoryBuffer.h"
#include "llvm/Support/SourceMgr.h"
#include "llvm/Support/SwapByteOrder.h"
#include "llvm/Support/YAMLTraits.h"
#include "llvm/Support/raw_ostream.h"
#include <algorithm>
#include <cassert>
#include <cstddef>
#include <cstdint>
#include <memory>
#include <string>
#include <vector>
Include dependency graph for DWARFEmitter.cpp:

Go to the source code of this file.

Typedefs

using EmitFuncType = Error(*)(raw_ostream &, const DWARFYAML::Data &)
 

Functions

template<typename T >
static void writeInteger (T Integer, raw_ostream &OS, bool IsLittleEndian)
 
static Error writeVariableSizedInteger (uint64_t Integer, size_t Size, raw_ostream &OS, bool IsLittleEndian)
 
static void ZeroFillBytes (raw_ostream &OS, size_t Size)
 
static void writeInitialLength (const DWARFYAML::InitialLength &Length, raw_ostream &OS, bool IsLittleEndian)
 
static void writeInitialLength (const dwarf::DwarfFormat Format, const uint64_t Length, raw_ostream &OS, bool IsLittleEndian)
 
static void emitFileEntry (raw_ostream &OS, const DWARFYAML::File &File)
 
static Error emitDebugSectionImpl (const DWARFYAML::Data &DI, EmitFuncType EmitFunc, StringRef Sec, StringMap< std::unique_ptr< MemoryBuffer >> &OutputBuffers)
 

Detailed Description

The DWARF component of yaml2obj.

Provided as library code for tests.

Definition in file DWARFEmitter.cpp.

Typedef Documentation

◆ EmitFuncType

Definition at line 419 of file DWARFEmitter.cpp.

Function Documentation

◆ emitDebugSectionImpl()

static Error emitDebugSectionImpl ( const DWARFYAML::Data DI,
EmitFuncType  EmitFunc,
StringRef  Sec,
StringMap< std::unique_ptr< MemoryBuffer >> &  OutputBuffers 
)
static

Definition at line 422 of file DWARFEmitter.cpp.

References llvm::Data.

◆ emitFileEntry()

static void emitFileEntry ( raw_ostream OS,
const DWARFYAML::File File 
)
static

◆ writeInitialLength() [1/2]

static void writeInitialLength ( const DWARFYAML::InitialLength Length,
raw_ostream OS,
bool  IsLittleEndian 
)
static

◆ writeInitialLength() [2/2]

static void writeInitialLength ( const dwarf::DwarfFormat  Format,
const uint64_t  Length,
raw_ostream OS,
bool  IsLittleEndian 
)
static

◆ writeInteger()

template<typename T >
static void writeInteger ( T  Integer,
raw_ostream OS,
bool  IsLittleEndian 
)
static

◆ writeVariableSizedInteger()

static Error writeVariableSizedInteger ( uint64_t  Integer,
size_t  Size,
raw_ostream OS,
bool  IsLittleEndian 
)
static

◆ ZeroFillBytes()

static void ZeroFillBytes ( raw_ostream OS,
size_t  Size 
)
static