summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-pdbdump/LinePrinter.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Rename llvm-pdbdump -> llvm-pdbutil.Zachary Turner2017-06-091-145/+0
| | | | | | | | | | This is to reflect the evolving nature of the tool as being useful for more than just dumping PDBs, as it can do many other things. Differential Revision: https://reviews.llvm.org/D34062 llvm-svn: 305106
* [llvm-pdbdump] Re-write the record layout code to be more resilient.Zachary Turner2017-04-241-1/+1
| | | | | | | | This reworks the way virtual bases are handled, and also the way padding is detected across multiple levels of aggregates, producing a much more accurate result. llvm-svn: 301203
* [llvm-pdbdump] Recursively dump class layout.Zachary Turner2017-04-131-2/+15
| | | | llvm-svn: 300258
* [llvm-pdbdump] Display padding bytes on record layoutZachary Turner2017-04-101-0/+4
| | | | | | | | | | | | | | | When dumping classes, show where padding occurs, and at the end of the class print statistics about how many bytes total of padding exist in a class. Since PDB doesn't specifically contain information about padding, we have to mimic this by sort of reversing a small portion of the record layout algorithm (e.g. looking at offsets and sizes and trying to determine whether something is part of the same field or a new field). Differential Revision: https://reviews.llvm.org/D31800 llvm-svn: 299869
* llvm-pdbdump: If we don't change the color, don't reset the color.Adrian McCarthy2017-03-291-3/+7
| | | | | | | | | The -output-color option was successful at suppressing color changes, but was still allowing color resets. Differential Revision: https://reviews.llvm.org/D31468 llvm-svn: 299006
* Add option to control whether llvm-pdbdump outputs in colorAdrian McCarthy2017-03-231-3/+4
| | | | | | | | | | | | | | Adds -color-output option to llvm-pdbdump pretty commands that lets the user specify whether the output should have color. The default depends on whether the output is going to a TTY (per prior discussion in https://reviews.llvm.org/D31246). This will enable tests that pipe llvm-pdbdump output to FileCheck to work across platforms without regard to the differences in ANSI codes. Differential Revision: https://reviews.llvm.org/D31263 llvm-svn: 298610
* Update llvm-pdbdump to use subcommands.Zachary Turner2016-06-301-13/+13
| | | | llvm-svn: 274247
* Move pdb code into pdb namespace.Zachary Turner2016-05-041-0/+3
| | | | llvm-svn: 268544
* Introduce a range version of std::any_of, and use it in SCEVSanjoy Das2015-12-011-6/+3
| | | | | | | | | | Reviewers: dblaikie, pcc Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D15063 llvm-svn: 254390
* llvm-pdbdump: Simplify. NFC.Rui Ueyama2015-11-031-27/+13
| | | | llvm-svn: 251873
* [llvm-pdbdump] Add include-only filters.Zachary Turner2015-09-291-27/+40
| | | | | | | | | | | | | | | | 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". llvm-svn: 248822
* [llvm-pdbdump] Many minor fixes and improvementsZachary Turner2015-03-021-1/+10
| | | | | | | | | | | | | | | | | A short list of some of the improvements: 1) Now supports -all command line argument, which implies many other command line arguments to simplify usage. 2) Now supports -no-compiler-generated command line argument to exclude compiler generated types. 3) Prints base class list. 4) -class-definitions implies -types. 5) Proper display of bitfields. 6) Can now distinguish between struct/class/interface/union. And a few other minor tweaks. llvm-svn: 230933
* [llvm-pdbdump] Add regex-based filtering.Zachary Turner2015-03-011-0/+35
| | | | llvm-svn: 230888
* [llvm-pdbdump] Fix member initialization order warnings.Zachary Turner2015-02-271-1/+1
| | | | llvm-svn: 230747
* [llvm-pdbdump] Colorize output.Zachary Turner2015-02-271-0/+80
llvm-svn: 230746
OpenPOWER on IntegriCloud