|
Ghidra 11.4.2
Ghidra internal decompiler documentation.
|
Factory and static initializer for the "c-language" back-end to the decompiler. More...
#include <printc.hh>
Public Member Functions | |
| virtual PrintLanguage * | buildLanguage (Architecture *glb) |
| Build the main PrintLanguage object corresponding to this capability. | |
Public Member Functions inherited from ghidra::PrintLanguageCapability | |
| const string & | getName (void) const |
| Get the high-level language name. | |
| virtual void | initialize (void) |
| Complete initialization of an extension point. | |
Public Member Functions inherited from ghidra::CapabilityPoint | |
| virtual | ~CapabilityPoint (void) |
| Destructor. | |
Private Member Functions | |
| PrintCCapability (void) | |
| Initialize the singleton. | |
| PrintCCapability (const PrintCCapability &op2) | |
| Not implemented. | |
| PrintCCapability & | operator= (const PrintCCapability &op) |
| Not implemented. | |
Static Private Attributes | |
| static PrintCCapability | printCCapability |
| The singleton instance. | |
Additional Inherited Members | |
Static Public Member Functions inherited from ghidra::PrintLanguageCapability | |
| static PrintLanguageCapability * | getDefault (void) |
| Retrieve the default language capability. | |
| static PrintLanguageCapability * | findCapability (const string &name) |
| Find a language capability by name. | |
Static Public Member Functions inherited from ghidra::CapabilityPoint | |
| static void | initializeAll (void) |
| Finish initialization for all extension points. | |
Protected Member Functions inherited from ghidra::CapabilityPoint | |
| CapabilityPoint (void) | |
| Construct extension capability exactly once. | |
Protected Attributes inherited from ghidra::PrintLanguageCapability | |
| string | name |
| Unique identifier for language capability. | |
| bool | isdefault |
| Set to true to treat this as the default language. | |
Factory and static initializer for the "c-language" back-end to the decompiler.
The singleton adds itself to the list of possible back-end languages for the decompiler and it acts as a factory for producing the PrintC object for emitting c-language tokens.
|
virtual |
Build the main PrintLanguage object corresponding to this capability.
An Architecture will call this once. All decompiling from this Architecture will use this same emitter.
| glb | is the Architecture that will own the new emitter |
Implements ghidra::PrintLanguageCapability.
References ghidra::PrintLanguageCapability::name.