LLVM  5.0.0
Classes | 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.

Classes

class  DumpVisitor
 An extension of the DWARFYAML::ConstVisitor which writes compile units and DIEs to a stream. More...
 

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

Definition at line 295 of file DWARFEmitter.cpp.

Function Documentation

static void EmitDebugSectionImpl ( const DWARFYAML::Data &  DI,
EmitFuncType  EmitFunc,
StringRef  Sec,
StringMap< std::unique_ptr< MemoryBuffer >> &  OutputBuffers 
)
static
static void EmitFileEntry ( raw_ostream &  OS,
const DWARFYAML::File &  File 
)
static
void writeInitialLength ( const DWARFYAML::InitialLength &  Length,
raw_ostream &  OS,
bool  IsLittleEndian 
)
template<typename T >
static void writeInteger ( T  Integer,
raw_ostream &  OS,
bool  IsLittleEndian 
)
static
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().

static void ZeroFillBytes ( raw_ostream &  OS,
size_t  Size 
)
static