LLVM  6.0.0svn
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/ObjectYAML/DWARFYAML.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/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.


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


template<typename T >
static void writeInteger (T Integer, raw_ostream &OS, bool IsLittleEndian)
static void 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 EmitFileEntry (raw_ostream &OS, const DWARFYAML::File &File)
static void 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 297 of file DWARFEmitter.cpp.

Function Documentation

◆ EmitDebugSectionImpl()

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

◆ EmitFileEntry()

static void EmitFileEntry ( raw_ostream OS,
const DWARFYAML::File File 

◆ writeInitialLength()

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

◆ writeInteger()

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

◆ writeVariableSizedInteger()

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

Definition at line 45 of file DWARFEmitter.cpp.

References assert(), and writeInteger().

Referenced by llvm::DWARFYAML::EmitDebugAranges(), and llvm::DWARFYAML::EmitDebugLine().

◆ ZeroFillBytes()

static void ZeroFillBytes ( raw_ostream OS,
size_t  Size