[llvm-pdbdump] Add include-only filters.
authorZachary Turner <zturner@google.com>
Tue, 29 Sep 2015 19:49:06 +0000 (19:49 +0000)
committerZachary Turner <zturner@google.com>
Tue, 29 Sep 2015 19:49:06 +0000 (19:49 +0000)
commitc9736fba4b3015e8bd2d47ced90876faf5d75df4
treeb00d1afd88dd53433d9f609318051c0bfde4cfe8
parentabae8489f1222c3bf5543393df79c70bcd1f67f5
[llvm-pdbdump] Add include-only filters.

PDB files have a lot of noise in them, with hundreds (or thousands)
of symbols from system libraries and compiler generated types.  If
you're only looking for a specific type, this can be problematic.

This CL allows you to display *only* types, variables, or compilands
matching a particular pattern.  These filters can even be combined
with exclude filters.  Include-only filters are given priority, so
that first the set of items to display is limited only to those that
match the include filters, and then the set of exclude filters is
applied to those.  If there are no include filters specified, then
it means "display everything".

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@248822 91177308-0d34-0410-b5e6-96231b3b80d8
test/tools/llvm-pdbdump/regex-filter.test
tools/llvm-pdbdump/LinePrinter.cpp
tools/llvm-pdbdump/LinePrinter.h
tools/llvm-pdbdump/llvm-pdbdump.cpp
tools/llvm-pdbdump/llvm-pdbdump.h