diff options
Diffstat (limited to 'contrib/llvm-project/lldb/include/lldb/Symbol/Type.h')
-rw-r--r-- | contrib/llvm-project/lldb/include/lldb/Symbol/Type.h | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/contrib/llvm-project/lldb/include/lldb/Symbol/Type.h b/contrib/llvm-project/lldb/include/lldb/Symbol/Type.h index 95a3bc497517..8735d016bb22 100644 --- a/contrib/llvm-project/lldb/include/lldb/Symbol/Type.h +++ b/contrib/llvm-project/lldb/include/lldb/Symbol/Type.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef liblldb_Type_h_ -#define liblldb_Type_h_ +#ifndef LLDB_SYMBOL_TYPE_H +#define LLDB_SYMBOL_TYPE_H #include "lldb/Symbol/CompilerDecl.h" #include "lldb/Symbol/CompilerType.h" @@ -97,13 +97,14 @@ public: llvm::Optional<uint64_t> byte_size, SymbolContextScope *context, lldb::user_id_t encoding_uid, EncodingDataType encoding_uid_type, const Declaration &decl, const CompilerType &compiler_qual_type, - ResolveState compiler_type_resolve_state); + ResolveState compiler_type_resolve_state, uint32_t opaque_payload = 0); // This makes an invalid type. Used for functions that return a Type when // they get an error. Type(); - void Dump(Stream *s, bool show_context); + void Dump(Stream *s, bool show_context, + lldb::DescriptionLevel level = lldb::eDescriptionLevelFull); void DumpTypeName(Stream *s); @@ -196,11 +197,11 @@ public: uint32_t GetEncodingMask(); - bool IsCompleteObjCClass() { return m_is_complete_objc_class; } - - void SetIsCompleteObjCClass(bool is_complete_objc_class) { - m_is_complete_objc_class = is_complete_objc_class; - } + typedef uint32_t Payload; + /// Return the language-specific payload. + Payload GetPayload() { return m_payload; } + /// Return the language-specific payload. + void SetPayload(Payload opaque_payload) { m_payload = opaque_payload; } protected: ConstString m_name; @@ -215,11 +216,12 @@ protected: Declaration m_decl; CompilerType m_compiler_type; ResolveState m_compiler_type_resolve_state; - bool m_is_complete_objc_class; + /// Language-specific flags. + Payload m_payload; Type *GetEncodingType(); - bool ResolveClangType(ResolveState compiler_type_resolve_state); + bool ResolveCompilerType(ResolveState compiler_type_resolve_state); }; // the two classes here are used by the public API as a backend to the SBType @@ -510,4 +512,4 @@ private: } // namespace lldb_private -#endif // liblldb_Type_h_ +#endif // LLDB_SYMBOL_TYPE_H |