36 }
else if (IO.
mapTag(
"!COFF")) {
39 }
else if (IO.
mapTag(
"!mach-o")) {
42 }
else if (IO.
mapTag(
"!fat-mach-o")) {
50 IO.
setError(
"YAML Object File missing document type tag!");
53 llvm::Twine(
"YAML Object File unsupported document type tag '") +
StringRef getRawTag() const
Get the tag as it was written in the document.
This class is the base class for all object file types.
virtual void setError(const Twine &)=0
Twine - A lightweight data structure for efficiently representing the concatenation of temporary valu...
This class should be specialized by any type that needs to be converted to/from a YAML mapping...
std::unique_ptr< COFFYAML::Object > Coff
virtual bool mapTag(StringRef Tag, bool Default=false)=0
std::unique_ptr< MachOYAML::Object > MachO
std::unique_ptr< MachOYAML::UniversalBinary > FatMachO
virtual bool outputting()=0
std::unique_ptr< ELFYAML::Object > Elf