diff options
author | Zachary Turner <zturner@google.com> | 2016-04-29 17:28:47 +0000 |
---|---|---|
committer | Zachary Turner <zturner@google.com> | 2016-04-29 17:28:47 +0000 |
commit | 2f09b5091ce055dbc3a803ecb2576540d6abb503 (patch) | |
tree | 13a919a417b0870502c6b5c87daa56aa55ed803f /llvm/lib/DebugInfo/PDB/Raw/PDBFile.cpp | |
parent | 6ba65deeb9b017e4144cdae341dcb9e3564c7c7b (diff) | |
download | llvm-2f09b5091ce055dbc3a803ecb2576540d6abb503.zip llvm-2f09b5091ce055dbc3a803ecb2576540d6abb503.tar.gz llvm-2f09b5091ce055dbc3a803ecb2576540d6abb503.tar.bz2 |
Put PDB parsing code into a pdb namespace.
llvm-svn: 268072
Diffstat (limited to 'llvm/lib/DebugInfo/PDB/Raw/PDBFile.cpp')
-rw-r--r-- | llvm/lib/DebugInfo/PDB/Raw/PDBFile.cpp | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/llvm/lib/DebugInfo/PDB/Raw/PDBFile.cpp b/llvm/lib/DebugInfo/PDB/Raw/PDBFile.cpp index 0adabfe..6e5f536 100644 --- a/llvm/lib/DebugInfo/PDB/Raw/PDBFile.cpp +++ b/llvm/lib/DebugInfo/PDB/Raw/PDBFile.cpp @@ -9,12 +9,13 @@ #include "llvm/DebugInfo/PDB/Raw/PDBFile.h" #include "llvm/ADT/ArrayRef.h" -#include "llvm/DebugInfo/PDB/Raw/PDBDbiStream.h" -#include "llvm/DebugInfo/PDB/Raw/PDBInfoStream.h" +#include "llvm/DebugInfo/PDB/Raw/DbiStream.h" +#include "llvm/DebugInfo/PDB/Raw/InfoStream.h" #include "llvm/Support/Endian.h" #include "llvm/Support/MemoryBuffer.h" using namespace llvm; +using namespace llvm::pdb; namespace { static const char Magic[] = {'M', 'i', 'c', 'r', 'o', 's', 'o', 'f', @@ -45,7 +46,7 @@ struct SuperBlock { }; } -struct llvm::PDBFileContext { +struct llvm::pdb::PDBFileContext { std::unique_ptr<MemoryBuffer> Buffer; const SuperBlock *SB; std::vector<uint32_t> StreamSizes; @@ -244,18 +245,18 @@ llvm::ArrayRef<support::ulittle32_t> PDBFile::getDirectoryBlockArray() { getNumDirectoryBlocks()); } -PDBInfoStream &PDBFile::getPDBInfoStream() { - if (!InfoStream) { - InfoStream.reset(new PDBInfoStream(*this)); - InfoStream->reload(); +InfoStream &PDBFile::getPDBInfoStream() { + if (!Info) { + Info.reset(new InfoStream(*this)); + Info->reload(); } - return *InfoStream; + return *Info; } -PDBDbiStream &PDBFile::getPDBDbiStream() { - if (!DbiStream) { - DbiStream.reset(new PDBDbiStream(*this)); - DbiStream->reload(); +DbiStream &PDBFile::getPDBDbiStream() { + if (!Dbi) { + Dbi.reset(new DbiStream(*this)); + Dbi->reload(); } - return *DbiStream; + return *Dbi; } |