diff options
| author | Greg Clayton <gclayton@apple.com> | 2011-09-29 16:58:15 +0000 |
|---|---|---|
| committer | Greg Clayton <gclayton@apple.com> | 2011-09-29 16:58:15 +0000 |
| commit | 4d01ace4fdde223f92a6290697abcd00e9a77763 (patch) | |
| tree | cba13ea70d77690dd19fea50bc26c16e2a750653 /lldb/source/Symbol/SymbolContext.cpp | |
| parent | eec5c5bf6e56c3cd5110ce0586856b3029770c46 (diff) | |
| download | bcm5719-llvm-4d01ace4fdde223f92a6290697abcd00e9a77763.tar.gz bcm5719-llvm-4d01ace4fdde223f92a6290697abcd00e9a77763.zip | |
If the new .apple_names and .apple_types DWARF accelerator tables
are available, we currently will still index the DWARF ourselves
and assert if the name lookups differ. This will help us transition
to the new accelerator tables and make sure they are workng before
we switch over entirely.
llvm-svn: 140788
Diffstat (limited to 'lldb/source/Symbol/SymbolContext.cpp')
| -rw-r--r-- | lldb/source/Symbol/SymbolContext.cpp | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/lldb/source/Symbol/SymbolContext.cpp b/lldb/source/Symbol/SymbolContext.cpp index 1df284b0b15..3bc4565b45d 100644 --- a/lldb/source/Symbol/SymbolContext.cpp +++ b/lldb/source/Symbol/SymbolContext.cpp @@ -1044,3 +1044,28 @@ SymbolContextList::NumLineEntriesWithLine (uint32_t line) const return match_count; } +bool +lldb_private::operator== (const SymbolContextList& lhs, const SymbolContextList& rhs) +{ + const uint32_t size = lhs.GetSize(); + if (size != rhs.GetSize()) + return false; + + SymbolContext lhs_sc; + SymbolContext rhs_sc; + for (uint32_t i=0; i<size; ++i) + { + lhs.GetContextAtIndex(i, lhs_sc); + rhs.GetContextAtIndex(i, rhs_sc); + if (lhs_sc != rhs_sc) + return false; + } + return true; +} + +bool +lldb_private::operator!= (const SymbolContextList& lhs, const SymbolContextList& rhs) +{ + return !(lhs == rhs); +} + |

