We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b342c4 commit 465bcddCopy full SHA for 465bcdd
lldb/source/Symbol/Type.cpp
@@ -694,6 +694,21 @@ TypeAndOrName::TypeAndOrName(const char *in_type_str)
694
TypeAndOrName::TypeAndOrName(ConstString &in_type_const_string)
695
: m_type_name(in_type_const_string) {}
696
697
+TypeAndOrName::TypeAndOrName(const CompilerType &type)
698
+ : m_type_pair(type)
699
+{
700
+ if (m_type_pair)
701
+ m_type_name = m_type_pair.GetName();
702
+}
703
+
704
+TypeAndOrName &TypeAndOrName::operator=(const TypeAndOrName &rhs) {
705
+ if (this != &rhs) {
706
+ m_type_name = rhs.m_type_name;
707
+ m_type_pair = rhs.m_type_pair;
708
+ }
709
+ return *this;
710
711
712
bool TypeAndOrName::operator==(const TypeAndOrName &other) const {
713
if (m_compiler_type != other.m_compiler_type)
714
return false;
0 commit comments