Skip to content

Commit 62d2c8a

Browse files
tromeycuviper
authored andcommitted
Add a missing TypeAndOrName constructor
Add a TypeAndOrName constructor that was declared but not defined. This is used in the Rust plugin. See https://reviews.llvm.org/D44752
1 parent 7709c2c commit 62d2c8a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

lldb/source/Symbol/Type.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -694,6 +694,13 @@ TypeAndOrName::TypeAndOrName(const TypeAndOrName &rhs)
694694
TypeAndOrName::TypeAndOrName(ConstString &in_type_const_string)
695695
: m_type_name(in_type_const_string) {}
696696

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+
697704
TypeAndOrName &TypeAndOrName::operator=(const TypeAndOrName &rhs) {
698705
if (this != &rhs) {
699706
m_type_name = rhs.m_type_name;

0 commit comments

Comments
 (0)