diff options
| author | Alex Langford <apl@fb.com> | 2020-01-08 15:35:21 -0800 |
|---|---|---|
| committer | Alex Langford <apl@fb.com> | 2020-01-08 18:05:33 -0800 |
| commit | a63af915288ad9d1049d486833fcd085b620dc6d (patch) | |
| tree | 779f0bbb94090510b027426e5e80074b56002f88 /lldb/source/Core | |
| parent | 26ba160d47220a0bce75b1f491bf6e262edf69fa (diff) | |
| download | bcm5719-llvm-a63af915288ad9d1049d486833fcd085b620dc6d.tar.gz bcm5719-llvm-a63af915288ad9d1049d486833fcd085b620dc6d.zip | |
[lldb] Remove various dead Compare functions
Diffstat (limited to 'lldb/source/Core')
| -rw-r--r-- | lldb/source/Core/Section.cpp | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/lldb/source/Core/Section.cpp b/lldb/source/Core/Section.cpp index 4a9acab2e27..b1d7eee108b 100644 --- a/lldb/source/Core/Section.cpp +++ b/lldb/source/Core/Section.cpp @@ -280,29 +280,6 @@ bool Section::ContainsFileAddress(addr_t vm_addr) const { return false; } -int Section::Compare(const Section &a, const Section &b) { - if (&a == &b) - return 0; - - const ModuleSP a_module_sp = a.GetModule(); - const ModuleSP b_module_sp = b.GetModule(); - if (a_module_sp == b_module_sp) { - user_id_t a_sect_uid = a.GetID(); - user_id_t b_sect_uid = b.GetID(); - if (a_sect_uid < b_sect_uid) - return -1; - if (a_sect_uid > b_sect_uid) - return 1; - return 0; - } else { - // The modules are different, just compare the module pointers - if (a_module_sp.get() < b_module_sp.get()) - return -1; - else - return 1; // We already know the modules aren't equal - } -} - void Section::Dump(Stream *s, Target *target, uint32_t depth) const { // s->Printf("%.*p: ", (int)sizeof(void*) * 2, this); s->Indent(); |

