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/Symbol | |
| parent | 26ba160d47220a0bce75b1f491bf6e262edf69fa (diff) | |
| download | bcm5719-llvm-a63af915288ad9d1049d486833fcd085b620dc6d.tar.gz bcm5719-llvm-a63af915288ad9d1049d486833fcd085b620dc6d.zip | |
[lldb] Remove various dead Compare functions
Diffstat (limited to 'lldb/source/Symbol')
| -rw-r--r-- | lldb/source/Symbol/Function.cpp | 10 | ||||
| -rw-r--r-- | lldb/source/Symbol/Type.cpp | 11 |
2 files changed, 0 insertions, 21 deletions
diff --git a/lldb/source/Symbol/Function.cpp b/lldb/source/Symbol/Function.cpp index c392317df00..e92585ccfed 100644 --- a/lldb/source/Symbol/Function.cpp +++ b/lldb/source/Symbol/Function.cpp @@ -76,16 +76,6 @@ InlineFunctionInfo::InlineFunctionInfo(ConstString name, InlineFunctionInfo::~InlineFunctionInfo() {} -int InlineFunctionInfo::Compare(const InlineFunctionInfo &a, - const InlineFunctionInfo &b) { - - int result = FunctionInfo::Compare(a, b); - if (result) - return result; - // only compare the mangled names if both have them - return Mangled::Compare(a.m_mangled, a.m_mangled); -} - void InlineFunctionInfo::Dump(Stream *s, bool show_fullpaths) const { FunctionInfo::Dump(s, show_fullpaths); if (m_mangled) diff --git a/lldb/source/Symbol/Type.cpp b/lldb/source/Symbol/Type.cpp index aeca76f7d05..f194356a0a0 100644 --- a/lldb/source/Symbol/Type.cpp +++ b/lldb/source/Symbol/Type.cpp @@ -656,17 +656,6 @@ CompilerType Type::GetForwardCompilerType() { return m_compiler_type; } -int Type::Compare(const Type &a, const Type &b) { - // Just compare the UID values for now... - lldb::user_id_t a_uid = a.GetID(); - lldb::user_id_t b_uid = b.GetID(); - if (a_uid < b_uid) - return -1; - if (a_uid > b_uid) - return 1; - return 0; -} - ConstString Type::GetQualifiedName() { return GetForwardCompilerType().GetConstTypeName(); } |

