Skip to content

Commit 68f4fe0

Browse files
tromeyvadimcn
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 ececf5e commit 68f4fe0

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
@@ -736,6 +736,13 @@ TypeAndOrName::TypeAndOrName(const char *in_type_str)
736736
TypeAndOrName::TypeAndOrName(ConstString &in_type_const_string)
737737
: m_type_name(in_type_const_string) {}
738738

739+
TypeAndOrName::TypeAndOrName(const CompilerType &type)
740+
: m_compiler_type(type)
741+
{
742+
if (m_compiler_type)
743+
m_type_name = m_compiler_type.GetTypeName();
744+
}
745+
739746
bool TypeAndOrName::operator==(const TypeAndOrName &other) const {
740747
if (m_compiler_type != other.m_compiler_type)
741748
return false;

0 commit comments

Comments
 (0)