#include "obj2yaml.h"
#include "llvm/Object/XCOFFObjectFile.h"
#include "llvm/ObjectYAML/XCOFFYAML.h"
#include "llvm/Support/Errc.h"
#include "llvm/Support/YAMLTraits.h"
usingnamespacellvm;
usingnamespacellvm::object;
namespace {
class XCOFFDumper { … };
}
Error XCOFFDumper::dump() { … }
void XCOFFDumper::dumpHeader() { … }
Error XCOFFDumper::dumpSections() { … }
template <typename Shdr, typename Reloc>
Error XCOFFDumper::dumpSections(ArrayRef<Shdr> Sections) { … }
Error XCOFFDumper::dumpFileAuxSym(XCOFFYAML::Symbol &Sym,
const XCOFFSymbolRef &SymbolEntRef) { … }
Error XCOFFDumper::dumpStatAuxSym(XCOFFYAML::Symbol &Sym,
const XCOFFSymbolRef &SymbolEntRef) { … }
void XCOFFDumper::dumpFuncAuxSym(XCOFFYAML::Symbol &Sym,
const uintptr_t AuxAddress) { … }
void XCOFFDumper::dumpExpAuxSym(XCOFFYAML::Symbol &Sym,
const uintptr_t AuxAddress) { … }
void XCOFFDumper::dumpCsectAuxSym(XCOFFYAML::Symbol &Sym,
const object::XCOFFCsectAuxRef &AuxEntPtr) { … }
Error XCOFFDumper::dumpAuxSyms(XCOFFYAML::Symbol &Sym,
const XCOFFSymbolRef &SymbolEntRef) { … }
Error XCOFFDumper::dumpBlockAuxSym(XCOFFYAML::Symbol &Sym,
const XCOFFSymbolRef &SymbolEntRef) { … }
Error XCOFFDumper::dumpDwarfAuxSym(XCOFFYAML::Symbol &Sym,
const XCOFFSymbolRef &SymbolEntRef) { … }
Error XCOFFDumper::dumpSymbols() { … }
Error xcoff2yaml(raw_ostream &Out, const object::XCOFFObjectFile &Obj) { … }