summaryrefslogtreecommitdiffstats
path: root/lldb/source/Core/ValueObjectVariable.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2012-03-26 23:03:23 +0000
committerGreg Clayton <gclayton@apple.com>2012-03-26 23:03:23 +0000
commit84db9105d24a326f35054f103fbb468eb6d9bfeb (patch)
treef2d1a6c18e9f3b6843cba0e65ed5c89ac3fbbfcd /lldb/source/Core/ValueObjectVariable.cpp
parent98e5d863ad3515ff119d120a1eb40c1c6a345443 (diff)
downloadbcm5719-llvm-84db9105d24a326f35054f103fbb468eb6d9bfeb.tar.gz
bcm5719-llvm-84db9105d24a326f35054f103fbb468eb6d9bfeb.zip
<rdar://problem/11113279>
Fixed type lookups to "do the right thing". Prior to this fix, looking up a type using "foo::bar" would result in a type list that contains all types that had "bar" as a basename unless the symbol file was able to match fully qualified names (which our DWARF parser does not). This fix will allow type matches to be made based on the basename and then have the types that don't match filtered out. Types by name can be fully qualified, or partially qualified with the new "bool exact_match" parameter to the Module::FindTypes() method. This fixes some issue that we discovered with dynamic type resolution as well as improves the overall type lookups in LLDB. llvm-svn: 153482
Diffstat (limited to 'lldb/source/Core/ValueObjectVariable.cpp')
-rw-r--r--lldb/source/Core/ValueObjectVariable.cpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/lldb/source/Core/ValueObjectVariable.cpp b/lldb/source/Core/ValueObjectVariable.cpp
index f5c5d0132da..d71ec97ce3c 100644
--- a/lldb/source/Core/ValueObjectVariable.cpp
+++ b/lldb/source/Core/ValueObjectVariable.cpp
@@ -67,8 +67,16 @@ ValueObjectVariable::GetTypeName()
Type * var_type = m_variable_sp->GetType();
if (var_type)
return var_type->GetName();
- ConstString empty_type_name;
- return empty_type_name;
+ return ConstString();
+}
+
+ConstString
+ValueObjectVariable::GetQualifiedTypeName()
+{
+ Type * var_type = m_variable_sp->GetType();
+ if (var_type)
+ return var_type->GetQualifiedName();
+ return ConstString();
}
uint32_t
OpenPOWER on IntegriCloud