]> granicus.if.org Git - llvm/commitdiff
NFC: Rename PDB_ReaderType::Raw to Native for consistency with the NativeSession...
authorAdrian McCarthy <amccarth@google.com>
Fri, 27 Jan 2017 00:01:55 +0000 (00:01 +0000)
committerAdrian McCarthy <amccarth@google.com>
Fri, 27 Jan 2017 00:01:55 +0000 (00:01 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@293235 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/DebugInfo/PDB/PDBTypes.h
lib/DebugInfo/PDB/PDB.cpp
tools/llvm-pdbdump/llvm-pdbdump.cpp

index 900a9851a8c861ba3680480b1fbeaeda14ff734a..dd2fc4f2c55f7b7b2333e436e39129c3538f02b7 100644 (file)
@@ -68,10 +68,10 @@ class PDBSymbolTypeDimension;
 class PDBSymbolUnknown;
 
 /// Specifies which PDB reader implementation is to be used.  Only a value
-/// of PDB_ReaderType::DIA is supported.
+/// of PDB_ReaderType::DIA is currently supported, but Native is in the works.
 enum class PDB_ReaderType {
   DIA = 0,
-  Raw = 1,
+  Native = 1,
 };
 
 /// An enumeration indicating the type of data contained in this table.
index 1011e11b586a4482d113486903c5f13dd02ba158..7e3acc1165f33e39f53be6a8d6bb85b272c28844 100644 (file)
@@ -27,7 +27,7 @@ using namespace llvm::pdb;
 Error 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)
+  if (Type == PDB_ReaderType::Native)
     return NativeSession::createFromPdb(Path, Session);
 
 #if LLVM_ENABLE_DIA_SDK
@@ -40,7 +40,7 @@ Error llvm::pdb::loadDataForPDB(PDB_ReaderType Type, StringRef Path,
 Error 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)
+  if (Type == PDB_ReaderType::Native)
     return NativeSession::createFromExe(Path, Session);
 
 #if LLVM_ENABLE_DIA_SDK
index 07ac65e2675827218a5d57e95e0a035ecc6411b5..d076c445c2e9e73b255cfbc4700ec1f4a8983a4d 100644 (file)
@@ -402,7 +402,7 @@ static void yamlToPdb(StringRef Path) {
 
 static void pdb2Yaml(StringRef Path) {
   std::unique_ptr<IPDBSession> Session;
-  ExitOnErr(loadDataForPDB(PDB_ReaderType::Raw, Path, Session));
+  ExitOnErr(loadDataForPDB(PDB_ReaderType::Native, Path, Session));
 
   NativeSession *RS = static_cast<NativeSession *>(Session.get());
   PDBFile &File = RS->getPDBFile();
@@ -414,7 +414,7 @@ static void pdb2Yaml(StringRef Path) {
 
 static void dumpRaw(StringRef Path) {
   std::unique_ptr<IPDBSession> Session;
-  ExitOnErr(loadDataForPDB(PDB_ReaderType::Raw, Path, Session));
+  ExitOnErr(loadDataForPDB(PDB_ReaderType::Native, Path, Session));
 
   NativeSession *RS = static_cast<NativeSession *>(Session.get());
   PDBFile &File = RS->getPDBFile();