OSDN Git Service

Improves pretty printing of variable types in llvm-pdbdump
authorAdrian McCarthy <amccarth@google.com>
Mon, 10 Apr 2017 16:43:09 +0000 (16:43 +0000)
committerAdrian McCarthy <amccarth@google.com>
Mon, 10 Apr 2017 16:43:09 +0000 (16:43 +0000)
commit95d726af97520480f690268ab362a64e94006076
treeca972392a41592d01a1084e89999f13b6079a707
parent4ed87e3dc1fcc1fe6146e58d539bd6fd86b3ed16
Improves pretty printing of variable types in llvm-pdbdump

* Adds support for pointers to arrays, which was missing
* Adds some tests
* Improves consistency of const and volatile qualifiers
* Eliminates non-composable special case code for arrays and function by using
  a more general recursive approach
* Has a hack for getting the calling convention into the right spot for
  pointer-to-functions

Given the rapid changes happenning in llvm-pdbdump, this may be difficult to
merge.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@299848 91177308-0d34-0410-b5e6-96231b3b80d8
15 files changed:
include/llvm/DebugInfo/PDB/PDBSymDumper.h
include/llvm/DebugInfo/PDB/PDBSymbol.h
include/llvm/DebugInfo/PDB/PDBSymbolTypeArray.h
include/llvm/DebugInfo/PDB/PDBSymbolTypeFunctionSig.h
include/llvm/DebugInfo/PDB/PDBSymbolTypePointer.h
lib/DebugInfo/PDB/PDBSymbolTypeArray.cpp
lib/DebugInfo/PDB/PDBSymbolTypeFunctionSig.cpp
lib/DebugInfo/PDB/PDBSymbolTypePointer.cpp
test/DebugInfo/PDB/DIA/pdbdump-linenumbers.test
test/DebugInfo/PDB/DIA/pdbdump-symbol-format.test
test/DebugInfo/PDB/Inputs/symbolformat.cpp
test/DebugInfo/PDB/Inputs/symbolformat.pdb
tools/llvm-pdbdump/PrettyBuiltinDumper.cpp
tools/llvm-pdbdump/PrettyVariableDumper.cpp
tools/llvm-pdbdump/PrettyVariableDumper.h