Skip to content

Commit 5a64510

Browse files
committed
[lldb] Remove redundant DemangledNameInfo::operator==
This wasn't defined correctly and was unused. And it was causing a CI build failure: ``` /home/buildbot/buildbot-root/cross-project-tests-sie-ubuntu-dwarf5/llvm-project/lldb/include/lldb/Core/DemangledNameInfo.h: In function ‘bool lldb_private::operator==(const lldb_private::DemangledNameInfo&, const lldb_private::DemangledNameInfo&)’: /home/buildbot/buildbot-root/cross-project-tests-sie-ubuntu-dwarf5/llvm-project/lldb/include/lldb/Core/DemangledNameInfo.h:60:25: error: ‘const struct lldb_private::DemangledNameInfo’ has no member named ‘QualifiersRange’ 60 | lhs.QualifiersRange) == | ^~~~~~~~~~~~~~~ /home/buildbot/buildbot-root/cross-project-tests-sie-ubuntu-dwarf5/llvm-project/lldb/include/lldb/Core/DemangledNameInfo.h:62:25: error: ‘const struct lldb_private::DemangledNameInfo’ has no member named ‘QualifiersRange’ 62 | lhs.QualifiersRange); | ^~~~~~~~~~~~~~~ 111.469 [1284/7/3896] Building CXX object tools/lldb/source/Expression/CMakeFiles/lldbExpression.dir/ObjectFileJIT.cpp.o 111.470 [1284/6/3897] Building CXX object tools/lldb/source/Expression/CMakeFiles/lldbExpression.dir/Materializer.cpp.o 111.492 [1284/5/3898] Building CXX object tools/lldb/source/Expression/CMakeFiles/lldbExpression.dir/REPL.cpp.o 111.496 [1284/4/3899] Building CXX object tools/lldb/source/Expression/CMakeFiles/lldbExpression.dir/UserExpression.cpp.o 111.695 [1284/3/3900] Building CXX object tools/lldb/source/Commands/CMakeFiles/lldbCommands.dir/CommandObjectTarget.cpp.o 112.944 [1284/2/3901] Linking CXX shared library lib/libclang.so.21.0.0git 113.098 [1284/1/3902] Linking CXX shared library lib/libclang-cpp.so.21.0git ```
1 parent 3e56f5f commit 5a64510

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

lldb/include/lldb/Core/DemangledNameInfo.h

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -64,19 +64,6 @@ struct DemangledNameInfo {
6464
return BasenameRange.second > BasenameRange.first &&
6565
BasenameRange.second > 0;
6666
}
67-
68-
friend bool operator==(const DemangledNameInfo &lhs,
69-
const DemangledNameInfo &rhs) {
70-
return std::tie(lhs.BasenameRange, lhs.ArgumentsRange, lhs.ScopeRange,
71-
lhs.QualifiersRange) ==
72-
std::tie(rhs.BasenameRange, rhs.ArgumentsRange, rhs.ScopeRange,
73-
lhs.QualifiersRange);
74-
}
75-
76-
friend bool operator!=(const DemangledNameInfo &lhs,
77-
const DemangledNameInfo &rhs) {
78-
return !(lhs == rhs);
79-
}
8067
};
8168

8269
/// An OutputBuffer which keeps a record of where certain parts of a

0 commit comments

Comments
 (0)