From 64b931c1e1490e6cca2b3020c1c97f4ec622df0e Mon Sep 17 00:00:00 2001 From: Jim Ingham Date: Fri, 20 Aug 2010 01:15:38 +0000 Subject: [PATCH] Add an accessor to get the Declaration for a type. llvm-svn: 111607 --- lldb/include/lldb/Symbol/Type.h | 3 +++ lldb/source/Symbol/Type.cpp | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/lldb/include/lldb/Symbol/Type.h b/lldb/include/lldb/Symbol/Type.h index d2b140180458..762e7c415372 100644 --- a/lldb/include/lldb/Symbol/Type.h +++ b/lldb/include/lldb/Symbol/Type.h @@ -168,6 +168,9 @@ public: m_context = context; } + const lldb_private::Declaration & + GetDeclaration () const; + void * GetOpaqueClangQualType (); diff --git a/lldb/source/Symbol/Type.cpp b/lldb/source/Symbol/Type.cpp index cd77e7ddd809..7791a969010c 100644 --- a/lldb/source/Symbol/Type.cpp +++ b/lldb/source/Symbol/Type.cpp @@ -389,6 +389,11 @@ lldb_private::Type::GetTypeList() return GetSymbolFile()->GetObjectFile()->GetModule()->GetTypeList(); } +const lldb_private::Declaration & +lldb_private::Type::GetDeclaration () const +{ + return m_decl; +} bool lldb_private::Type::ResolveClangType()