39 }
else if (IO.
mapTag(
"!COFF")) {
42 }
else if (IO.
mapTag(
"!mach-o")) {
45 }
else if (IO.
mapTag(
"!fat-mach-o")) {
49 }
else if (IO.
mapTag(
"!WASM")) {
56 IO.
setError(
"YAML Object File missing document type tag!");
59 Twine(
"YAML Object File unsupported document type tag '") +
StringRef getRawTag() const
Get the tag as it was written in the document.
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
std::unique_ptr< WasmYAML::Object > Wasm
virtual bool outputting()=0
std::unique_ptr< ELFYAML::Object > Elf