diff options
Diffstat (limited to 'naming.cc')
-rw-r--r-- | naming.cc | 22 |
1 files changed, 11 insertions, 11 deletions
@@ -173,6 +173,13 @@ Name Describe::operator()(const BaseClass& x) { return (*this)(x.type_id); } +Name Describe::operator()(const Method& x) { + if (x.mangled_name == x.name) { + return Name{x.name}; + } + return Name{x.name + " {" + x.mangled_name + "}"}; +} + Name Describe::operator()(const Member& x) { auto description = (*this)(x.type_id); if (!x.name.empty()) { @@ -185,13 +192,6 @@ Name Describe::operator()(const Member& x) { return description; } -Name Describe::operator()(const Method& x) { - if (x.mangled_name == x.name) { - return Name{x.name}; - } - return Name{x.name + " {" + x.mangled_name + "}"}; -} - Name Describe::operator()(const StructUnion& x) { std::ostringstream os; os << x.kind << ' '; @@ -258,14 +258,14 @@ std::string DescribeKind::operator()(const BaseClass&) { return "base class"; } -std::string DescribeKind::operator()(const Member&) { - return "member"; -} - std::string DescribeKind::operator()(const Method&) { return "method"; } +std::string DescribeKind::operator()(const Member&) { + return "member"; +} + std::string DescribeKind::operator()(const ElfSymbol& x) { std::ostringstream os; os << x.symbol_type << " symbol"; |