LLVM 20.0.0git
Static Public Member Functions | List of all members
llvm::gsym::ObjectFileTransformer Class Reference

#include "llvm/DebugInfo/GSYM/ObjectFileTransformer.h"

Static Public Member Functions

static llvm::Error convert (const object::ObjectFile &Obj, OutputAggregator &Output, GsymCreator &Gsym)
 Extract any object file data that is needed by the GsymCreator.
 

Detailed Description

Definition at line 25 of file ObjectFileTransformer.h.

Member Function Documentation

◆ convert()

llvm::Error ObjectFileTransformer::convert ( const object::ObjectFile Obj,
OutputAggregator Output,
GsymCreator Gsym 
)
static

Extract any object file data that is needed by the GsymCreator.

The extracted information includes the UUID of the binary and converting all function symbols from any symbol tables into FunctionInfo objects.

Parameters
ObjThe object file that contains the DWARF debug info.
LogThe stream to log warnings and non fatal issues to. If NULL, don't log.
GsymThe GSYM creator to populate with the function information from the debug info.
Returns
An error indicating any fatal issues that happen when parsing the DWARF, or Error::success() if all goes well.

Definition at line 71 of file ObjectFileTransformer.cpp.

References llvm::gsym::GsymCreator::addFunctionInfo(), llvm::consumeError(), llvm::Expected< T >::get(), llvm::gsym::GsymCreator::getNumFunctionInfos(), llvm::gsym::OutputAggregator::GetOS(), llvm::object::ELFSymbolRef::getSize(), getUUID(), llvm::gsym::GsymCreator::insertString(), llvm::gsym::GsymCreator::IsValidTextAddress(), llvm::logAllUnhandledErrors(), Name, llvm::gsym::GsymCreator::setUUID(), llvm::size(), llvm::Error::success(), Sym, llvm::object::ObjectFile::symbols(), and llvm::Expected< T >::takeError().


The documentation for this class was generated from the following files: