[opt-viewer] Make filter_=None by default in get_remarks and gather_results
authorJessica Paquette <jpaquette@apple.com>
Wed, 27 Mar 2019 18:14:32 +0000 (18:14 +0000)
committerJessica Paquette <jpaquette@apple.com>
Wed, 27 Mar 2019 18:14:32 +0000 (18:14 +0000)
commitbeda859a15ae064c5ace8c230709fdf79dc7a602
tree20069d9a6ffe5344226eb5a3d39590d56ab206e4
parent2e9ddcc30e846687c9c0112d3ae32acccc9757bb
[opt-viewer] Make filter_=None by default in get_remarks and gather_results

Right now, if you try to use optdiff.py on any opt records, it will fail because
its calls to gather_results weren't updated to support filtering.

Since filters are supposed to be optional, this makes them None by default in
get_remarks and in gather_results. This allows other tools that don't support
filtering to still use the functions as is.

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

llvm-svn: 357106
llvm/tools/opt-viewer/optrecord.py