Initial support for reading type information from PDBs.
authorZachary Turner <zturner@google.com>
Fri, 15 Apr 2016 00:21:26 +0000 (00:21 +0000)
committerZachary Turner <zturner@google.com>
Fri, 15 Apr 2016 00:21:26 +0000 (00:21 +0000)
commit42dff790683ab788286ab94a52bdfe784dd1685b
treead4806405da541292abcc640ec4ee69f7edfaf1c
parent5ffa13c47395c0e9138526108b12711d27c2dbfe
Initial support for reading type information from PDBs.

This implements a PDBASTParser and corresponding logic in
SymbolFilePDB to do type lookup by name.  This is just a first
pass and leaves many aspects of type lookup unimplemented, and
just focuses on laying the framework.  With this patch, you should
be able to lookup basic types by name from a PDB.

Full class definitions are not completed yet, we will instead
just return a forward declaration of the class.

Differential Revision: http://reviews.llvm.org/D18848
Reviewed by: Greg Clayton

llvm-svn: 266392
lldb/include/lldb/Symbol/ClangASTContext.h
lldb/source/Plugins/SymbolFile/PDB/CMakeLists.txt
lldb/source/Plugins/SymbolFile/PDB/PDBASTParser.cpp [new file with mode: 0644]
lldb/source/Plugins/SymbolFile/PDB/PDBASTParser.h [new file with mode: 0644]
lldb/source/Plugins/SymbolFile/PDB/SymbolFilePDB.cpp
lldb/source/Plugins/SymbolFile/PDB/SymbolFilePDB.h
lldb/source/Symbol/ClangASTContext.cpp
lldb/unittests/SymbolFile/PDB/CMakeLists.txt
lldb/unittests/SymbolFile/PDB/Inputs/test-pdb-types.cpp [new file with mode: 0644]
lldb/unittests/SymbolFile/PDB/Inputs/test-pdb-types.pdb [new file with mode: 0644]
lldb/unittests/SymbolFile/PDB/SymbolFilePDBTests.cpp