Skip to content

Commit

Permalink
[libc++] Make sure that the symbol differ takes into account symbol t…
Browse files Browse the repository at this point in the history
…ypes

Summary:
Otherwise, it doesn't take into account things like whether the symbol
is defined or undefined, and whether symbols are indirect references
(re-exports) or not.

Reviewers: EricWF

Subscribers: christof, jkorous, dexonsmith, libcxx-commits

Tags: #libc

Differential Revision: https://reviews.llvm.org/D60416

llvm-svn: 358408
  • Loading branch information
ldionne committed Apr 15, 2019
1 parent c714333 commit f3e4f24
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libcxx/utils/libcxx/sym_check/diff.py
Expand Up @@ -14,10 +14,10 @@


def _symbol_difference(lhs, rhs):
lhs_names = set((n['name'] for n in lhs))
rhs_names = set((n['name'] for n in rhs))
lhs_names = set(((n['name'], n['type']) for n in lhs))
rhs_names = set(((n['name'], n['type']) for n in rhs))
diff_names = lhs_names - rhs_names
return [n for n in lhs if n['name'] in diff_names]
return [n for n in lhs if (n['name'], n['type']) in diff_names]


def _find_by_key(sym_list, k):
Expand Down

0 comments on commit f3e4f24

Please sign in to comment.