summaryrefslogtreecommitdiffstats
path: root/llvm/lib/DebugInfo/PDB/Raw/PDBFile.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/DebugInfo/PDB/Raw/PDBFile.cpp')
-rw-r--r--llvm/lib/DebugInfo/PDB/Raw/PDBFile.cpp27
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 0adabfe625c..6e5f536cc70 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;
}
OpenPOWER on IntegriCloud