aboutsummaryrefslogtreecommitdiff
path: root/naming.cc
diff options
context:
space:
mode:
Diffstat (limited to 'naming.cc')
-rw-r--r--naming.cc22
1 files changed, 11 insertions, 11 deletions
diff --git a/naming.cc b/naming.cc
index 8395291..8cf2c09 100644
--- a/naming.cc
+++ b/naming.cc
@@ -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";