[Lldb-commits] [lldb] r360583 - DWARF/DIERef: remove non-const operator<
Pavel Labath via lldb-commits
lldb-commits at lists.llvm.org
Mon May 13 06:52:40 PDT 2019
Author: labath
Date: Mon May 13 06:52:40 2019
New Revision: 360583
URL: http://llvm.org/viewvc/llvm-project?rev=360583&view=rev
Log:
DWARF/DIERef: remove non-const operator<
It serves no purpose as one can always invoke the const version instead.
Modified:
lldb/trunk/source/Plugins/SymbolFile/DWARF/DIERef.h
Modified: lldb/trunk/source/Plugins/SymbolFile/DWARF/DIERef.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/SymbolFile/DWARF/DIERef.h?rev=360583&r1=360582&r2=360583&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/SymbolFile/DWARF/DIERef.h (original)
+++ lldb/trunk/source/Plugins/SymbolFile/DWARF/DIERef.h Mon May 13 06:52:40 2019
@@ -26,8 +26,6 @@ struct DIERef {
return die_offset < ref.die_offset;
}
- bool operator<(const DIERef &ref) { return die_offset < ref.die_offset; }
-
explicit operator bool() const {
return cu_offset != DW_INVALID_OFFSET || die_offset != DW_INVALID_OFFSET;
}
More information about the lldb-commits
mailing list