LLVM
8.0.1
|
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>
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) |
The DWARF component of yaml2obj.
Provided as library code for tests.
Definition in file DWARFEmitter.cpp.
using EmitFuncType = void (*)(raw_ostream &, const DWARFYAML::Data &) |
Definition at line 296 of file DWARFEmitter.cpp.
|
static |
Definition at line 299 of file DWARFEmitter.cpp.
References llvm::DWARFYAML::Entry::AbbrCode, llvm::Data, llvm::raw_ostream::flush(), llvm::MemoryBufferRef::getBufferSize(), llvm::MemoryBuffer::getMemBufferCopy(), llvm::getSLEB128Size(), llvm::getULEB128Size(), llvm::DWARFYAML::Unit::Length, llvm::DWARFYAML::InitialLength::setLength(), llvm::StringRef::size(), and llvm::String.
Referenced by llvm::DWARFYAML::EmitDebugSections().
|
static |
Definition at line 205 of file DWARFEmitter.cpp.
References llvm::StringRef::data(), llvm::DWARFYAML::File::DirIdx, llvm::encodeULEB128(), llvm::DWARFYAML::File::Length, llvm::DWARFYAML::File::ModTime, llvm::DWARFYAML::File::Name, llvm::StringRef::size(), and llvm::raw_ostream::write().
Referenced by llvm::DWARFYAML::EmitDebugLine().
|
static |
Definition at line 65 of file DWARFEmitter.cpp.
References llvm::DWARFYAML::InitialLength::isDWARF64(), llvm::DWARFYAML::InitialLength::TotalLength, llvm::DWARFYAML::InitialLength::TotalLength64, and writeInteger().
Referenced by llvm::DWARFYAML::EmitDebugAranges(), llvm::DWARFYAML::EmitDebugLine(), and llvm::DWARFYAML::EmitPubSection().
|
static |
Definition at line 39 of file DWARFEmitter.cpp.
References llvm::sys::IsLittleEndianHost, llvm::sys::swapByteOrder(), and llvm::raw_ostream::write().
Referenced by llvm::DWARFYAML::EmitDebugAranges(), llvm::DWARFYAML::EmitDebugLine(), llvm::DWARFYAML::EmitPubSection(), writeInitialLength(), and writeVariableSizedInteger().
|
static |
Definition at line 45 of file DWARFEmitter.cpp.
References assert(), and writeInteger().
Referenced by llvm::DWARFYAML::EmitDebugAranges(), and llvm::DWARFYAML::EmitDebugLine().
|
static |
Definition at line 59 of file DWARFEmitter.cpp.
References Size, and llvm::raw_ostream::write().
Referenced by llvm::DWARFYAML::EmitDebugAranges().