1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00

NFC: Rename PDB_ReaderType::Raw to Native for consistency with the NativeSession rename.

llvm-svn: 293235
This commit is contained in:
Adrian McCarthy 2017-01-27 00:01:55 +00:00
parent e7e532525f
commit 4075c74e9b
3 changed files with 6 additions and 6 deletions

View 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.

View 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

View 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();