summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lldb/include/lldb/API/SBType.h5
-rw-r--r--lldb/scripts/Python/interface/SBType.i3
-rw-r--r--lldb/source/API/SBType.cpp11
3 files changed, 18 insertions, 1 deletions
diff --git a/lldb/include/lldb/API/SBType.h b/lldb/include/lldb/API/SBType.h
index 5989ea769d4..7aa4252d3ca 100644
--- a/lldb/include/lldb/API/SBType.h
+++ b/lldb/include/lldb/API/SBType.h
@@ -92,7 +92,10 @@ public:
lldb::SBType
GetDereferencedType();
-
+
+ lldb::SBType
+ GetUnqualifiedType();
+
lldb::SBType
GetBasicType(lldb::BasicType type);
diff --git a/lldb/scripts/Python/interface/SBType.i b/lldb/scripts/Python/interface/SBType.i
index 589287a2d38..2cc384085b6 100644
--- a/lldb/scripts/Python/interface/SBType.i
+++ b/lldb/scripts/Python/interface/SBType.i
@@ -143,6 +143,9 @@ public:
GetDereferencedType();
lldb::SBType
+ GetUnqualifiedType();
+
+ lldb::SBType
GetBasicType (lldb::BasicType type);
uint32_t
diff --git a/lldb/source/API/SBType.cpp b/lldb/source/API/SBType.cpp
index 8deb01c50af..3064398e574 100644
--- a/lldb/source/API/SBType.cpp
+++ b/lldb/source/API/SBType.cpp
@@ -211,6 +211,17 @@ SBType::GetDereferencedType()
return SBType(ClangASTType(m_opaque_sp->GetASTContext(),qt.getNonReferenceType().getAsOpaquePtr()));
}
+lldb::SBType
+SBType::GetUnqualifiedType()
+{
+ if (!IsValid())
+ return SBType();
+
+ QualType qt (QualType::getFromOpaquePtr(m_opaque_sp->GetOpaqueQualType()));
+ return SBType(ClangASTType(m_opaque_sp->GetASTContext(),qt.getUnqualifiedType().getAsOpaquePtr()));
+}
+
+
SBType
SBType::GetBasicType(lldb::BasicType type)
{
OpenPOWER on IntegriCloud