decompiler  1.0.0
Public Member Functions | Private Attributes | List of all members
ghidra::CompilerTag Class Reference

Contents of a <compiler> tag in a .ldefs file. More...

#include <sleigh_arch.hh>

Public Member Functions

 CompilerTag (void)
 Constructor.
 
void decode (Decoder &decoder)
 Restore the record from an XML stream. More...
 
const string & getName (void) const
 Get the human readable name of the spec.
 
const string & getSpec (void) const
 Get the file-name.
 
const string & getId (void) const
 Get the string used as part of language id.
 

Private Attributes

string name
 (Human readable) name of the compiler
 
string spec
 cspec file for this compiler
 
string id
 Unique id for this compiler.
 

Detailed Description

Contents of a <compiler> tag in a .ldefs file.

This class describes a compiler specification file as referenced by the Sleigh language subsystem.

Member Function Documentation

◆ decode()

void ghidra::CompilerTag::decode ( Decoder decoder)

Restore the record from an XML stream.

Parse file attributes from a <compiler> element

Parameters
decoderis the stream decoder

References ghidra::Decoder::closeElement(), name, ghidra::Decoder::openElement(), ghidra::Decoder::readString(), and spec.

Referenced by CompilerTag(), and ghidra::LanguageDescription::LanguageDescription().


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