LLVM  8.0.1
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.

Typedefs

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

Functions

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 296 of file DWARFEmitter.cpp.

Function Documentation

◆ EmitDebugSectionImpl()

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

◆ EmitFileEntry()

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

◆ writeInitialLength()

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

◆ writeInteger()

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

◆ writeVariableSizedInteger()

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

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

Definition at line 59 of file DWARFEmitter.cpp.

References Size, and llvm::raw_ostream::write().

Referenced by llvm::DWARFYAML::EmitDebugAranges().