From 4075c74e9bc12fc309363bc50fe537553a0f3def Mon Sep 17 00:00:00 2001 From: Adrian McCarthy Date: Fri, 27 Jan 2017 00:01:55 +0000 Subject: [PATCH] NFC: Rename PDB_ReaderType::Raw to Native for consistency with the NativeSession rename. llvm-svn: 293235 --- include/llvm/DebugInfo/PDB/PDBTypes.h | 4 ++-- lib/DebugInfo/PDB/PDB.cpp | 4 ++-- tools/llvm-pdbdump/llvm-pdbdump.cpp | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/include/llvm/DebugInfo/PDB/PDBTypes.h b/include/llvm/DebugInfo/PDB/PDBTypes.h index 900a9851a8c..dd2fc4f2c55 100644 --- a/include/llvm/DebugInfo/PDB/PDBTypes.h +++ b/include/llvm/DebugInfo/PDB/PDBTypes.h @@ -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. diff --git a/lib/DebugInfo/PDB/PDB.cpp b/lib/DebugInfo/PDB/PDB.cpp index 1011e11b586..7e3acc1165f 100644 --- a/lib/DebugInfo/PDB/PDB.cpp +++ b/lib/DebugInfo/PDB/PDB.cpp @@ -27,7 +27,7 @@ using namespace llvm::pdb; Error llvm::pdb::loadDataForPDB(PDB_ReaderType Type, StringRef Path, std::unique_ptr &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 &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 diff --git a/tools/llvm-pdbdump/llvm-pdbdump.cpp b/tools/llvm-pdbdump/llvm-pdbdump.cpp index 07ac65e2675..d076c445c2e 100644 --- a/tools/llvm-pdbdump/llvm-pdbdump.cpp +++ b/tools/llvm-pdbdump/llvm-pdbdump.cpp @@ -402,7 +402,7 @@ static void yamlToPdb(StringRef Path) { static void pdb2Yaml(StringRef Path) { std::unique_ptr Session; - ExitOnErr(loadDataForPDB(PDB_ReaderType::Raw, Path, Session)); + ExitOnErr(loadDataForPDB(PDB_ReaderType::Native, Path, Session)); NativeSession *RS = static_cast(Session.get()); PDBFile &File = RS->getPDBFile(); @@ -414,7 +414,7 @@ static void pdb2Yaml(StringRef Path) { static void dumpRaw(StringRef Path) { std::unique_ptr Session; - ExitOnErr(loadDataForPDB(PDB_ReaderType::Raw, Path, Session)); + ExitOnErr(loadDataForPDB(PDB_ReaderType::Native, Path, Session)); NativeSession *RS = static_cast(Session.get()); PDBFile &File = RS->getPDBFile();