summaryrefslogtreecommitdiffstats
path: root/lldb/source/API
diff options
context:
space:
mode:
authorEnrico Granata <egranata@apple.com>2015-11-07 02:06:57 +0000
committerEnrico Granata <egranata@apple.com>2015-11-07 02:06:57 +0000
commit7123e2b5d79b6ed18f56ebac1e8c8bc1a57ea23c (patch)
tree7cbfbd7a15cc2fdc98a4a3e736b0a7372253a154 /lldb/source/API
parentea1df7fe9fc363e7583f691431b54fdb658fe0a8 (diff)
downloadbcm5719-llvm-7123e2b5d79b6ed18f56ebac1e8c8bc1a57ea23c.tar.gz
bcm5719-llvm-7123e2b5d79b6ed18f56ebac1e8c8bc1a57ea23c.zip
Add SBType::IsAnonymousType() and relative plumbing in the debugger internals
For language that support such a thing, this API allows to ask whether a type is anonymous (i.e. has been given no name) Comes with test case llvm-svn: 252390
Diffstat (limited to 'lldb/source/API')
-rw-r--r--lldb/source/API/SBType.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/lldb/source/API/SBType.cpp b/lldb/source/API/SBType.cpp
index dcdbbc71d20..90a2e655172 100644
--- a/lldb/source/API/SBType.cpp
+++ b/lldb/source/API/SBType.cpp
@@ -264,6 +264,14 @@ SBType::IsTypedefType ()
return m_opaque_sp->GetCompilerType(true).IsTypedefType();
}
+bool
+SBType::IsAnonymousType ()
+{
+ if (!IsValid())
+ return false;
+ return m_opaque_sp->GetCompilerType(true).IsAnonymousType();
+}
+
lldb::SBType
SBType::GetFunctionReturnType ()
{
OpenPOWER on IntegriCloud