|
LLDB mainline
|
#include <RegisterTypeFlags.h>
Classes | |
| struct | Enumerator |
Public Types | |
| typedef std::vector< Enumerator > | Enumerators |
| Public Types inherited from lldb_private::RegisterType | |
| enum | RegisterTypeKind { eRegisterTypeKindFlags , eRegisterTypeKindEnum } |
Public Member Functions | |
| RegisterTypeEnum (std::string id, const Enumerators &enumerators) | |
| const Enumerators & | GetEnumerators () const |
| void | DumpToLog (Log *log) const |
| virtual void | ToXMLElement (Stream &strm, const RegisterType *user=nullptr) const override |
| Output the register type as an XML element. | |
| Public Member Functions inherited from lldb_private::RegisterType | |
| RegisterTypeKind | getKind () const |
| RegisterType (RegisterTypeKind kind, std::string id) | |
| void | ToXML (Stream &strm, std::unordered_set< const RegisterType * > &previously_emitted, const RegisterType *user=nullptr) const |
| Output XML that describes this type, to be inserted into a target XML file. | |
| virtual | ~RegisterType ()=default |
| const std::string & | GetID () const |
| void | SetDependencies (std::vector< const RegisterType * > dependencies) |
Static Public Member Functions | |
| static bool | classof (const RegisterType *register_type) |
Private Attributes | |
| Enumerators | m_enumerators |
Definition at line 24 of file RegisterTypeFlags.h.
| typedef std::vector<Enumerator> lldb_private::RegisterTypeEnum::Enumerators |
Definition at line 40 of file RegisterTypeFlags.h.
| RegisterTypeEnum::RegisterTypeEnum | ( | std::string | id, |
| const Enumerators & | enumerators ) |
Definition at line 430 of file RegisterTypeFlags.cpp.
References lldb_private::RegisterType::eRegisterTypeKindEnum, m_enumerators, lldb_private::RegisterType::RegisterType(), and UNUSED_IF_ASSERT_DISABLED.
|
inlinestatic |
Definition at line 54 of file RegisterTypeFlags.h.
References lldb_private::RegisterType::eRegisterTypeKindEnum, lldb_private::RegisterType::getKind(), and lldb_private::RegisterType::RegisterType().
| void RegisterTypeEnum::DumpToLog | ( | Log * | log | ) | const |
Definition at line 378 of file RegisterTypeFlags.cpp.
References GetEnumerators(), lldb_private::RegisterType::GetID(), and LLDB_LOG.
|
inline |
Definition at line 47 of file RegisterTypeFlags.h.
References m_enumerators.
Referenced by lldb_private::RegisterTypeBuilderClang::BuildEnumType(), DumpToLog(), and ToXMLElement().
|
overridevirtual |
Output the register type as an XML element.
That is, "<foo ...>" until the closing </foo>, including any child types in between. For example the flags in a register flag set.
Implements lldb_private::RegisterType.
Definition at line 328 of file RegisterTypeFlags.cpp.
References GetEnumerators(), lldb_private::RegisterType::GetID(), lldb_private::Stream::Indent(), lldb_private::Stream::IndentLess(), lldb_private::Stream::IndentMore(), lldb_private::Stream::Printf(), lldb_private::Stream::PutChar(), and lldb_private::RegisterType::RegisterType().
|
private |
Definition at line 59 of file RegisterTypeFlags.h.
Referenced by GetEnumerators(), and RegisterTypeEnum().