[llvm-pdbdump] Fix dumping of function pointers and basic types.
authorZachary Turner <zturner@google.com>
Thu, 26 Feb 2015 23:49:23 +0000 (23:49 +0000)
committerZachary Turner <zturner@google.com>
Thu, 26 Feb 2015 23:49:23 +0000 (23:49 +0000)
commit6aba383ab52229968809ddca370809b126369dbc
treee3ce086400fc959e8cdeb1415ef5c5c2fb1ffcd2
parented009f6b571633c2fce51b993c37579977ae78f4
[llvm-pdbdump] Fix dumping of function pointers and basic types.

Function pointers were not correctly handled by the dumper, and
they would print as "* name".  They now print as
"int (__cdecl *name)(int arg1, int arg2)" as they should.

Also, doubles were being printed as floats.  This fixes that bug
as well, and adds tests for all builtin types. as well as a test
for function pointers.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@230703 91177308-0d34-0410-b5e6-96231b3b80d8
12 files changed:
include/llvm/DebugInfo/PDB/PDBExtras.h
lib/DebugInfo/PDB/PDBExtras.cpp
test/DebugInfo/PDB/Inputs/symbolformat.cpp
test/DebugInfo/PDB/Inputs/symbolformat.pdb
test/DebugInfo/PDB/pdbdump-symbol-format.test
tools/llvm-pdbdump/CMakeLists.txt
tools/llvm-pdbdump/FunctionDumper.cpp
tools/llvm-pdbdump/FunctionDumper.h
tools/llvm-pdbdump/TypeDumper.cpp
tools/llvm-pdbdump/TypedefDumper.cpp
tools/llvm-pdbdump/VariableDumper.cpp
tools/llvm-pdbdump/VariableDumper.h