aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/DebugInfo/PDB/PDB.cpp
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2016-05-04 20:32:13 +0000
committerZachary Turner <zturner@google.com>2016-05-04 20:32:13 +0000
commitec28fc349987fa9cd9a05680ea5e81d9a9b35ce3 (patch)
treeef1e578dd646cd33f7c938ba4d1bd0daa48e74b6 /llvm/lib/DebugInfo/PDB/PDB.cpp
parent4a9578aefeca8f39ddfd8e33f1941b00becb3395 (diff)
downloadllvm-ec28fc349987fa9cd9a05680ea5e81d9a9b35ce3.zip
llvm-ec28fc349987fa9cd9a05680ea5e81d9a9b35ce3.tar.gz
llvm-ec28fc349987fa9cd9a05680ea5e81d9a9b35ce3.tar.bz2
Move pdb code into pdb namespace.
llvm-svn: 268544
Diffstat (limited to 'llvm/lib/DebugInfo/PDB/PDB.cpp')
-rw-r--r--llvm/lib/DebugInfo/PDB/PDB.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/llvm/lib/DebugInfo/PDB/PDB.cpp b/llvm/lib/DebugInfo/PDB/PDB.cpp
index 39b4b94..1c65e85 100644
--- a/llvm/lib/DebugInfo/PDB/PDB.cpp
+++ b/llvm/lib/DebugInfo/PDB/PDB.cpp
@@ -20,12 +20,13 @@
#include "llvm/DebugInfo/PDB/Raw/RawSession.h"
using namespace llvm;
+using namespace llvm::pdb;
-PDB_ErrorCode llvm::loadDataForPDB(PDB_ReaderType Type, StringRef Path,
- std::unique_ptr<IPDBSession> &Session) {
+PDB_ErrorCode llvm::pdb::loadDataForPDB(PDB_ReaderType Type, StringRef Path,
+ std::unique_ptr<IPDBSession> &Session) {
// Create the correct concrete instance type based on the value of Type.
if (Type == PDB_ReaderType::Raw)
- return pdb::RawSession::createFromPdb(Path, Session);
+ return RawSession::createFromPdb(Path, Session);
#if HAVE_DIA_SDK
return DIASession::createFromPdb(Path, Session);
@@ -34,11 +35,11 @@ PDB_ErrorCode llvm::loadDataForPDB(PDB_ReaderType Type, StringRef Path,
#endif
}
-PDB_ErrorCode llvm::loadDataForEXE(PDB_ReaderType Type, StringRef Path,
- std::unique_ptr<IPDBSession> &Session) {
+PDB_ErrorCode llvm::pdb::loadDataForEXE(PDB_ReaderType Type, StringRef Path,
+ std::unique_ptr<IPDBSession> &Session) {
// Create the correct concrete instance type based on the value of Type.
if (Type == PDB_ReaderType::Raw)
- return pdb::RawSession::createFromExe(Path, Session);
+ return RawSession::createFromExe(Path, Session);
#if HAVE_DIA_SDK
return DIASession::createFromExe(Path, Session);