summaryrefslogtreecommitdiffstats
path: root/llvm/lib/DebugInfo/PDB/CMakeLists.txt
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2016-04-21 20:58:35 +0000
committerZachary Turner <zturner@google.com>2016-04-21 20:58:35 +0000
commita12b3d4626ee6dcb5cc98b121dd287b444b6bd3c (patch)
tree372590fc3d32faad953fd3f78f528743e55738fa /llvm/lib/DebugInfo/PDB/CMakeLists.txt
parent5852c5a12f268aee0274ced9109d72da50985ebe (diff)
downloadbcm5719-llvm-a12b3d4626ee6dcb5cc98b121dd287b444b6bd3c.tar.gz
bcm5719-llvm-a12b3d4626ee6dcb5cc98b121dd287b444b6bd3c.zip
Refactor raw pdb dumper into library
PDB parsing code was hand-rolled into llvm-pdbdump. This patch moves the parsing of this code into DebugInfoPDB and makes the dumper use this. This is achieved by implementing the skeleton of RawPdbSession, the non-DIA counterpart to the existing PDB read interface. None of the type / source file / etc information is accessible yet, so this implementation is not yet close to achieving parity with the DIA counterpart, but the RawSession class simply holds a reference to a PDBFile class which handles parsing the file format. Additionally a PDBStream class is introduced which allows accessing the bytes of a particular stream in a PDB file. Differential Revision: http://reviews.llvm.org/D19343 Reviewed By: majnemer llvm-svn: 267049
Diffstat (limited to 'llvm/lib/DebugInfo/PDB/CMakeLists.txt')
-rw-r--r--llvm/lib/DebugInfo/PDB/CMakeLists.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/llvm/lib/DebugInfo/PDB/CMakeLists.txt b/llvm/lib/DebugInfo/PDB/CMakeLists.txt
index 1645a95aac3..9d5eb69dbf5 100644
--- a/llvm/lib/DebugInfo/PDB/CMakeLists.txt
+++ b/llvm/lib/DebugInfo/PDB/CMakeLists.txt
@@ -24,9 +24,13 @@ if(HAVE_DIA_SDK)
)
set(LIBPDB_ADDITIONAL_HEADER_DIRS "${LLVM_MAIN_INCLUDE_DIR}/llvm/DebugInfo/PDB/DIA")
-
endif()
+add_pdb_impl_folder(Raw
+ Raw/PDBFile.cpp
+ Raw/PDBStream.cpp
+ Raw/RawSession.cpp)
+
list(APPEND LIBPDB_ADDITIONAL_HEADER_DIRS "${LLVM_MAIN_INCLUDE_DIR}/llvm/DebugInfo/PDB")
add_llvm_library(LLVMDebugInfoPDB
OpenPOWER on IntegriCloud