[PDB] Support executables and source/line info.
authorZachary Turner <zturner@google.com>
Fri, 17 Apr 2015 22:40:36 +0000 (22:40 +0000)
committerZachary Turner <zturner@google.com>
Fri, 17 Apr 2015 22:40:36 +0000 (22:40 +0000)
commit4b08354b0ebb5551048138148f61911bc1232491
tree5f268cad63b67dcd46c702b1f9f51c31ec39e696
parentd0a2482870218dce13c629f5acce96d8dafffcfd
[PDB] Support executables and source/line info.

Previously DebugInfoPDB could only load data for a PDB given a
path to the PDB.  It could not open an EXE and find the matching
PDB and verify it matched, etc.  This patch adds support for that
so that we can simply load debug information for a PDB directly.

Additionally, this patch extends DebugInfoPDB to support getting
source and line information for symbols.

llvm-svn: 235237
llvm/include/llvm/DebugInfo/PDB/DIA/DIASession.h
llvm/include/llvm/DebugInfo/PDB/IPDBSession.h
llvm/include/llvm/DebugInfo/PDB/PDB.h
llvm/include/llvm/DebugInfo/PDB/PDBTypes.h
llvm/lib/DebugInfo/PDB/DIA/DIASession.cpp
llvm/lib/DebugInfo/PDB/PDB.cpp
llvm/tools/llvm-pdbdump/llvm-pdbdump.cpp
llvm/unittests/DebugInfo/PDB/PDBApiTest.cpp