summaryrefslogtreecommitdiffstats
path: root/libcxx/utils/sym_check/sym_diff.py
diff options
context:
space:
mode:
Diffstat (limited to 'libcxx/utils/sym_check/sym_diff.py')
-rwxr-xr-xlibcxx/utils/sym_check/sym_diff.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/libcxx/utils/sym_check/sym_diff.py b/libcxx/utils/sym_check/sym_diff.py
index 69c340028c6..0d88a2b8714 100755
--- a/libcxx/utils/sym_check/sym_diff.py
+++ b/libcxx/utils/sym_check/sym_diff.py
@@ -24,6 +24,10 @@ def main():
help='Only print symbol names',
action='store_true', default=False)
parser.add_argument(
+ '--removed-only', dest='removed_only',
+ help='Only print removed symbols',
+ action='store_true', default=False)
+ parser.add_argument(
'-o', '--output', dest='output',
help='The output file. stdout is used if not given',
type=str, action='store', default=None)
@@ -41,6 +45,8 @@ def main():
new_syms_list = util.extract_or_load(args.new_syms)
added, removed, changed = diff.diff(old_syms_list, new_syms_list)
+ if args.removed_only:
+ added = {}
report, is_break = diff.report_diff(added, removed, changed,
names_only=args.names_only,
demangle=args.demangle)
OpenPOWER on IntegriCloud