]> granicus.if.org Git - llvm/commitdiff
NFC: Rename (PDB) RawSession to NativeSession
authorAdrian McCarthy <amccarth@google.com>
Wed, 25 Jan 2017 22:38:55 +0000 (22:38 +0000)
committerAdrian McCarthy <amccarth@google.com>
Wed, 25 Jan 2017 22:38:55 +0000 (22:38 +0000)
This eliminates one overload on the term Raw.

Differential Revision: https://reviews.llvm.org/D29098

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@293104 91177308-0d34-0410-b5e6-96231b3b80d8

58 files changed:
include/llvm/DebugInfo/PDB/Native/DbiStream.h [moved from include/llvm/DebugInfo/PDB/Raw/DbiStream.h with 94% similarity]
include/llvm/DebugInfo/PDB/Native/DbiStreamBuilder.h [moved from include/llvm/DebugInfo/PDB/Raw/DbiStreamBuilder.h with 94% similarity]
include/llvm/DebugInfo/PDB/Native/EnumTables.h [moved from include/llvm/DebugInfo/PDB/Raw/EnumTables.h with 100% similarity]
include/llvm/DebugInfo/PDB/Native/GlobalsStream.h [moved from include/llvm/DebugInfo/PDB/Raw/GlobalsStream.h with 92% similarity]
include/llvm/DebugInfo/PDB/Native/Hash.h [moved from include/llvm/DebugInfo/PDB/Raw/Hash.h with 100% similarity]
include/llvm/DebugInfo/PDB/Native/HashTable.h [moved from include/llvm/DebugInfo/PDB/Raw/HashTable.h with 100% similarity]
include/llvm/DebugInfo/PDB/Native/ISectionContribVisitor.h [moved from include/llvm/DebugInfo/PDB/Raw/ISectionContribVisitor.h with 100% similarity]
include/llvm/DebugInfo/PDB/Native/InfoStream.h [moved from include/llvm/DebugInfo/PDB/Raw/InfoStream.h with 94% similarity]
include/llvm/DebugInfo/PDB/Native/InfoStreamBuilder.h [moved from include/llvm/DebugInfo/PDB/Raw/InfoStreamBuilder.h with 89% similarity]
include/llvm/DebugInfo/PDB/Native/ModInfo.h [moved from include/llvm/DebugInfo/PDB/Raw/ModInfo.h with 97% similarity]
include/llvm/DebugInfo/PDB/Native/ModStream.h [moved from include/llvm/DebugInfo/PDB/Raw/ModStream.h with 100% similarity]
include/llvm/DebugInfo/PDB/Native/NamedStreamMap.h [moved from include/llvm/DebugInfo/PDB/Raw/NamedStreamMap.h with 96% similarity]
include/llvm/DebugInfo/PDB/Native/NativeSession.h [moved from include/llvm/DebugInfo/PDB/Raw/RawSession.h with 91% similarity]
include/llvm/DebugInfo/PDB/Native/PDBFile.h [moved from include/llvm/DebugInfo/PDB/Raw/PDBFile.h with 94% similarity]
include/llvm/DebugInfo/PDB/Native/PDBFileBuilder.h [moved from include/llvm/DebugInfo/PDB/Raw/PDBFileBuilder.h with 89% similarity]
include/llvm/DebugInfo/PDB/Native/PublicsStream.h [moved from include/llvm/DebugInfo/PDB/Raw/PublicsStream.h with 95% similarity]
include/llvm/DebugInfo/PDB/Native/RawConstants.h [moved from include/llvm/DebugInfo/PDB/Raw/RawConstants.h with 100% similarity]
include/llvm/DebugInfo/PDB/Native/RawError.h [moved from include/llvm/DebugInfo/PDB/Raw/RawError.h with 100% similarity]
include/llvm/DebugInfo/PDB/Native/RawTypes.h [moved from include/llvm/DebugInfo/PDB/Raw/RawTypes.h with 100% similarity]
include/llvm/DebugInfo/PDB/Native/StringTable.h [moved from include/llvm/DebugInfo/PDB/Raw/StringTable.h with 100% similarity]
include/llvm/DebugInfo/PDB/Native/StringTableBuilder.h [moved from include/llvm/DebugInfo/PDB/Raw/StringTableBuilder.h with 100% similarity]
include/llvm/DebugInfo/PDB/Native/SymbolStream.h [moved from include/llvm/DebugInfo/PDB/Raw/SymbolStream.h with 100% similarity]
include/llvm/DebugInfo/PDB/Native/TpiHashing.h [moved from include/llvm/DebugInfo/PDB/Raw/TpiHashing.h with 98% similarity]
include/llvm/DebugInfo/PDB/Native/TpiStream.h [moved from include/llvm/DebugInfo/PDB/Raw/TpiStream.h with 92% similarity]
include/llvm/DebugInfo/PDB/Native/TpiStreamBuilder.h [moved from include/llvm/DebugInfo/PDB/Raw/TpiStreamBuilder.h with 97% similarity]
include/llvm/DebugInfo/PDB/PDBTypes.h
lib/DebugInfo/PDB/CMakeLists.txt
lib/DebugInfo/PDB/Native/DbiStream.cpp [moved from lib/DebugInfo/PDB/Raw/DbiStream.cpp with 96% similarity]
lib/DebugInfo/PDB/Native/DbiStreamBuilder.cpp [moved from lib/DebugInfo/PDB/Raw/DbiStreamBuilder.cpp with 98% similarity]
lib/DebugInfo/PDB/Native/EnumTables.cpp [moved from lib/DebugInfo/PDB/Raw/EnumTables.cpp with 92% similarity]
lib/DebugInfo/PDB/Native/GSI.cpp [moved from lib/DebugInfo/PDB/Raw/GSI.cpp with 97% similarity]
lib/DebugInfo/PDB/Native/GSI.h [moved from lib/DebugInfo/PDB/Raw/GSI.h with 97% similarity]
lib/DebugInfo/PDB/Native/GlobalsStream.cpp [moved from lib/DebugInfo/PDB/Raw/GlobalsStream.cpp with 95% similarity]
lib/DebugInfo/PDB/Native/Hash.cpp [moved from lib/DebugInfo/PDB/Raw/Hash.cpp with 98% similarity]
lib/DebugInfo/PDB/Native/HashTable.cpp [moved from lib/DebugInfo/PDB/Raw/HashTable.cpp with 98% similarity]
lib/DebugInfo/PDB/Native/InfoStream.cpp [moved from lib/DebugInfo/PDB/Raw/InfoStream.cpp with 89% similarity]
lib/DebugInfo/PDB/Native/InfoStreamBuilder.cpp [moved from lib/DebugInfo/PDB/Raw/InfoStreamBuilder.cpp with 84% similarity]
lib/DebugInfo/PDB/Native/ModInfo.cpp [moved from lib/DebugInfo/PDB/Raw/ModInfo.cpp with 95% similarity]
lib/DebugInfo/PDB/Native/ModStream.cpp [moved from lib/DebugInfo/PDB/Raw/ModStream.cpp with 91% similarity]
lib/DebugInfo/PDB/Native/NamedStreamMap.cpp [moved from lib/DebugInfo/PDB/Raw/NamedStreamMap.cpp with 96% similarity]
lib/DebugInfo/PDB/Native/NativeSession.cpp [moved from lib/DebugInfo/PDB/Raw/RawSession.cpp with 50% similarity]
lib/DebugInfo/PDB/Native/PDBFile.cpp [moved from lib/DebugInfo/PDB/Raw/PDBFile.cpp with 91% similarity]
lib/DebugInfo/PDB/Native/PDBFileBuilder.cpp [moved from lib/DebugInfo/PDB/Raw/PDBFileBuilder.cpp with 90% similarity]
lib/DebugInfo/PDB/Native/PublicsStream.cpp [moved from lib/DebugInfo/PDB/Raw/PublicsStream.cpp with 95% similarity]
lib/DebugInfo/PDB/Native/RawError.cpp [moved from lib/DebugInfo/PDB/Raw/RawError.cpp with 98% similarity]
lib/DebugInfo/PDB/Native/StringTable.cpp [moved from lib/DebugInfo/PDB/Raw/StringTable.cpp with 94% similarity]
lib/DebugInfo/PDB/Native/StringTableBuilder.cpp [moved from lib/DebugInfo/PDB/Raw/StringTableBuilder.cpp with 95% similarity]
lib/DebugInfo/PDB/Native/SymbolStream.cpp [moved from lib/DebugInfo/PDB/Raw/SymbolStream.cpp with 86% similarity]
lib/DebugInfo/PDB/Native/TpiHashing.cpp [moved from lib/DebugInfo/PDB/Raw/TpiHashing.cpp with 96% similarity]
lib/DebugInfo/PDB/Native/TpiStream.cpp [moved from lib/DebugInfo/PDB/Raw/TpiStream.cpp with 91% similarity]
lib/DebugInfo/PDB/Native/TpiStreamBuilder.cpp [moved from lib/DebugInfo/PDB/Raw/TpiStreamBuilder.cpp with 94% similarity]
lib/DebugInfo/PDB/PDB.cpp
tools/llvm-pdbdump/LLVMOutputStyle.cpp
tools/llvm-pdbdump/PdbYaml.cpp
tools/llvm-pdbdump/PdbYaml.h
tools/llvm-pdbdump/YAMLOutputStyle.cpp
tools/llvm-pdbdump/YamlTypeDumper.cpp
tools/llvm-pdbdump/llvm-pdbdump.cpp

similarity index 94%
rename from include/llvm/DebugInfo/PDB/Raw/DbiStream.h
rename to include/llvm/DebugInfo/PDB/Native/DbiStream.h
index 2228ca9e640db8eb1318a0e82c368146653688cf..06e4515ba474de08d72fca8f9c2ab1c28f2b8fd3 100644 (file)
 #include "llvm/DebugInfo/MSF/MappedBlockStream.h"
 #include "llvm/DebugInfo/MSF/StreamArray.h"
 #include "llvm/DebugInfo/MSF/StreamRef.h"
+#include "llvm/DebugInfo/PDB/Native/ModInfo.h"
+#include "llvm/DebugInfo/PDB/Native/RawConstants.h"
+#include "llvm/DebugInfo/PDB/Native/RawTypes.h"
+#include "llvm/DebugInfo/PDB/Native/StringTable.h"
 #include "llvm/DebugInfo/PDB/PDBTypes.h"
-#include "llvm/DebugInfo/PDB/Raw/ModInfo.h"
-#include "llvm/DebugInfo/PDB/Raw/RawConstants.h"
-#include "llvm/DebugInfo/PDB/Raw/RawTypes.h"
-#include "llvm/DebugInfo/PDB/Raw/StringTable.h"
 #include "llvm/Support/Endian.h"
 #include "llvm/Support/Error.h"
 
similarity index 94%
rename from include/llvm/DebugInfo/PDB/Raw/DbiStreamBuilder.h
rename to include/llvm/DebugInfo/PDB/Native/DbiStreamBuilder.h
index 99a3ac7fb1da22ca7ab93198ad4fff4fd0a8b97c..05af1ef06ed9415c71fd81a5dae4ce86a483b9f9 100644 (file)
@@ -16,9 +16,9 @@
 
 #include "llvm/DebugInfo/MSF/ByteStream.h"
 #include "llvm/DebugInfo/MSF/StreamReader.h"
+#include "llvm/DebugInfo/PDB/Native/PDBFile.h"
+#include "llvm/DebugInfo/PDB/Native/RawConstants.h"
 #include "llvm/DebugInfo/PDB/PDBTypes.h"
-#include "llvm/DebugInfo/PDB/Raw/PDBFile.h"
-#include "llvm/DebugInfo/PDB/Raw/RawConstants.h"
 #include "llvm/Support/Endian.h"
 
 namespace llvm {
@@ -60,8 +60,7 @@ public:
 
   Error finalizeMsfLayout();
 
-  Error commit(const msf::MSFLayout &Layout,
-               const msf::WritableStream &Buffer);
+  Error commit(const msf::MSFLayout &Layout, const msf::WritableStream &Buffer);
 
   // A helper function to create Section Contributions from COFF input
   // section headers.
similarity index 92%
rename from include/llvm/DebugInfo/PDB/Raw/GlobalsStream.h
rename to include/llvm/DebugInfo/PDB/Native/GlobalsStream.h
index 175f093cf53c99da8918bad904d6c7683c083b1e..06596cb020c8d8d16426582ad89a7a64515d51f7 100644 (file)
@@ -12,9 +12,9 @@
 
 #include "llvm/DebugInfo/MSF/MappedBlockStream.h"
 #include "llvm/DebugInfo/MSF/StreamArray.h"
+#include "llvm/DebugInfo/PDB/Native/RawConstants.h"
+#include "llvm/DebugInfo/PDB/Native/RawTypes.h"
 #include "llvm/DebugInfo/PDB/PDBTypes.h"
-#include "llvm/DebugInfo/PDB/Raw/RawConstants.h"
-#include "llvm/DebugInfo/PDB/Raw/RawTypes.h"
 #include "llvm/Support/Error.h"
 
 namespace llvm {
similarity index 94%
rename from include/llvm/DebugInfo/PDB/Raw/InfoStream.h
rename to include/llvm/DebugInfo/PDB/Native/InfoStream.h
index 99109adad1e7829656a141f9e0fa1787b576fcad..0b59d9e789dbbfeebe83541eae54cb5da7c988df 100644 (file)
@@ -12,9 +12,9 @@
 
 #include "llvm/ADT/StringMap.h"
 #include "llvm/DebugInfo/MSF/MappedBlockStream.h"
+#include "llvm/DebugInfo/PDB/Native/NamedStreamMap.h"
+#include "llvm/DebugInfo/PDB/Native/RawConstants.h"
 #include "llvm/DebugInfo/PDB/PDBTypes.h"
-#include "llvm/DebugInfo/PDB/Raw/NamedStreamMap.h"
-#include "llvm/DebugInfo/PDB/Raw/RawConstants.h"
 
 #include "llvm/Support/Endian.h"
 #include "llvm/Support/Error.h"
similarity index 89%
rename from include/llvm/DebugInfo/PDB/Raw/InfoStreamBuilder.h
rename to include/llvm/DebugInfo/PDB/Native/InfoStreamBuilder.h
index 768de094e98b73ab730e178a759751e8f0db02ab..1b182bc65aa1d5feeaba0dffe4995d6febd10dbd 100644 (file)
 #include "llvm/ADT/Optional.h"
 #include "llvm/Support/Error.h"
 
+#include "llvm/DebugInfo/PDB/Native/NamedStreamMap.h"
+#include "llvm/DebugInfo/PDB/Native/PDBFile.h"
+#include "llvm/DebugInfo/PDB/Native/RawConstants.h"
 #include "llvm/DebugInfo/PDB/PDBTypes.h"
-#include "llvm/DebugInfo/PDB/Raw/NamedStreamMap.h"
-#include "llvm/DebugInfo/PDB/Raw/PDBFile.h"
-#include "llvm/DebugInfo/PDB/Raw/RawConstants.h"
 
 namespace llvm {
 namespace msf {
similarity index 97%
rename from include/llvm/DebugInfo/PDB/Raw/ModInfo.h
rename to include/llvm/DebugInfo/PDB/Native/ModInfo.h
index bf5cf53b3313af1be635129e8020d520de135933..d81d4c20ed1a6b5f76b9ee0759261af5bf22d9e8 100644 (file)
@@ -13,7 +13,7 @@
 #include "llvm/ADT/StringRef.h"
 #include "llvm/DebugInfo/MSF/StreamArray.h"
 #include "llvm/DebugInfo/MSF/StreamRef.h"
-#include "llvm/DebugInfo/PDB/Raw/RawTypes.h"
+#include "llvm/DebugInfo/PDB/Native/RawTypes.h"
 #include "llvm/Support/Error.h"
 #include <cstdint>
 #include <vector>
similarity index 96%
rename from include/llvm/DebugInfo/PDB/Raw/NamedStreamMap.h
rename to include/llvm/DebugInfo/PDB/Native/NamedStreamMap.h
index 18b828a4a431406ed61209a5860feafe56290617..c5cf76e774002ff8b69e28633c87860b842c3095 100644 (file)
@@ -12,7 +12,7 @@
 
 #include "llvm/ADT/StringMap.h"
 #include "llvm/ADT/StringRef.h"
-#include "llvm/DebugInfo/PDB/Raw/HashTable.h"
+#include "llvm/DebugInfo/PDB/Native/HashTable.h"
 #include "llvm/Support/Error.h"
 #include <cstdint>
 
similarity index 91%
rename from include/llvm/DebugInfo/PDB/Raw/RawSession.h
rename to include/llvm/DebugInfo/PDB/Native/NativeSession.h
index 5a6c469fcc8e8f41c1eea4d142e3e9339b9ad12d..e6da266f796d545a7c96f8b64f4b6ffa5c88e314 100644 (file)
@@ -1,4 +1,4 @@
-//===- RawSession.h - Native implementation of IPDBSession ------*- C++ -*-===//
+//===- NativeSession.h - Native implementation of IPDBSession ---*- C++ -*-===//
 //
 //                     The LLVM Compiler Infrastructure
 //
@@ -19,11 +19,11 @@ namespace llvm {
 namespace pdb {
 class PDBFile;
 
-class RawSession : public IPDBSession {
+class NativeSession : public IPDBSession {
 public:
-  RawSession(std::unique_ptr<PDBFile> PdbFile,
-             std::unique_ptr<BumpPtrAllocator> Allocator);
-  ~RawSession() override;
+  NativeSession(std::unique_ptr<PDBFile> PdbFile,
+                std::unique_ptr<BumpPtrAllocator> Allocator);
+  ~NativeSession() override;
 
   static Error createFromPdb(StringRef Path,
                              std::unique_ptr<IPDBSession> &Session);
similarity index 94%
rename from include/llvm/DebugInfo/PDB/Raw/PDBFile.h
rename to include/llvm/DebugInfo/PDB/Native/PDBFile.h
index 07c1dcfa87e39e514243407893f786dd508aa7b6..9fb0ccc87f1a05c6824154f2891280e900d4464f 100644 (file)
@@ -104,10 +104,11 @@ public:
   bool hasPDBTpiStream() const;
   bool hasStringTable();
 
- private:
-  Expected<std::unique_ptr<msf::MappedBlockStream>> safelyCreateIndexedStream(
-      const msf::MSFLayout &Layout, const msf::ReadableStream &MsfData,
-      uint32_t StreamIndex) const;
+private:
+  Expected<std::unique_ptr<msf::MappedBlockStream>>
+  safelyCreateIndexedStream(const msf::MSFLayout &Layout,
+                            const msf::ReadableStream &MsfData,
+                            uint32_t StreamIndex) const;
 
   BumpPtrAllocator &Allocator;
 
similarity index 89%
rename from include/llvm/DebugInfo/PDB/Raw/PDBFileBuilder.h
rename to include/llvm/DebugInfo/PDB/Native/PDBFileBuilder.h
index bc48b5494c4d5e25264be9e25ccd5d8271b5c86c..3898af5afc9e42adda0f8fa066a3e846e6c5ad4d 100644 (file)
 #include "llvm/ADT/ArrayRef.h"
 #include "llvm/ADT/BitVector.h"
 #include "llvm/ADT/Optional.h"
-#include "llvm/DebugInfo/PDB/Raw/NamedStreamMap.h"
-#include "llvm/DebugInfo/PDB/Raw/PDBFile.h"
-#include "llvm/DebugInfo/PDB/Raw/RawConstants.h"
-#include "llvm/DebugInfo/PDB/Raw/StringTableBuilder.h"
+#include "llvm/DebugInfo/PDB/Native/NamedStreamMap.h"
+#include "llvm/DebugInfo/PDB/Native/PDBFile.h"
+#include "llvm/DebugInfo/PDB/Native/RawConstants.h"
+#include "llvm/DebugInfo/PDB/Native/StringTableBuilder.h"
 #include "llvm/Support/Allocator.h"
 #include "llvm/Support/Endian.h"
 #include "llvm/Support/Error.h"
similarity index 95%
rename from include/llvm/DebugInfo/PDB/Raw/PublicsStream.h
rename to include/llvm/DebugInfo/PDB/Native/PublicsStream.h
index 577f2986ff240511ae3300e3f318be8601a50c3f..9adf04d11c0f9c39aacc63eea1890e23eed3b4e5 100644 (file)
@@ -13,9 +13,9 @@
 #include "llvm/DebugInfo/CodeView/SymbolRecord.h"
 #include "llvm/DebugInfo/MSF/MappedBlockStream.h"
 #include "llvm/DebugInfo/MSF/StreamArray.h"
+#include "llvm/DebugInfo/PDB/Native/RawConstants.h"
+#include "llvm/DebugInfo/PDB/Native/RawTypes.h"
 #include "llvm/DebugInfo/PDB/PDBTypes.h"
-#include "llvm/DebugInfo/PDB/Raw/RawConstants.h"
-#include "llvm/DebugInfo/PDB/Raw/RawTypes.h"
 
 #include "llvm/Support/Error.h"
 
similarity index 98%
rename from include/llvm/DebugInfo/PDB/Raw/TpiHashing.h
rename to include/llvm/DebugInfo/PDB/Native/TpiHashing.h
index 67a4952fcdfe24610b1d396120bc55b149f1c5c0..72d25190065ca3b61afaf3b8f2c3c48a00933d79 100644 (file)
@@ -16,7 +16,7 @@
 #include "llvm/DebugInfo/CodeView/TypeRecord.h"
 #include "llvm/DebugInfo/CodeView/TypeVisitorCallbacks.h"
 #include "llvm/DebugInfo/MSF/StreamArray.h"
-#include "llvm/DebugInfo/PDB/Raw/RawError.h"
+#include "llvm/DebugInfo/PDB/Native/RawError.h"
 #include "llvm/Support/Endian.h"
 #include "llvm/Support/Error.h"
 #include <cstdint>
similarity index 92%
rename from include/llvm/DebugInfo/PDB/Raw/TpiStream.h
rename to include/llvm/DebugInfo/PDB/Native/TpiStream.h
index dc99a3e72deb5ad0a6dca5e4de83f888fa967b4e..b9368a7ef25a3f2386879b074e182264a3a0008a 100644 (file)
 
 #include "llvm/DebugInfo/CodeView/TypeRecord.h"
 #include "llvm/DebugInfo/MSF/StreamArray.h"
+#include "llvm/DebugInfo/PDB/Native/HashTable.h"
+#include "llvm/DebugInfo/PDB/Native/RawConstants.h"
+#include "llvm/DebugInfo/PDB/Native/RawTypes.h"
 #include "llvm/DebugInfo/PDB/PDBTypes.h"
-#include "llvm/DebugInfo/PDB/Raw/HashTable.h"
-#include "llvm/DebugInfo/PDB/Raw/RawConstants.h"
-#include "llvm/DebugInfo/PDB/Raw/RawTypes.h"
 #include "llvm/Support/raw_ostream.h"
 
 #include "llvm/Support/Error.h"
similarity index 97%
rename from include/llvm/DebugInfo/PDB/Raw/TpiStreamBuilder.h
rename to include/llvm/DebugInfo/PDB/Native/TpiStreamBuilder.h
index f9a642126f531837ecb8fb98dc285dea01e7a134..74145d4df9f250714c3de3a7c55741040bd0755a 100644 (file)
@@ -14,7 +14,7 @@
 #include "llvm/DebugInfo/CodeView/TypeRecord.h"
 #include "llvm/DebugInfo/MSF/ByteStream.h"
 #include "llvm/DebugInfo/MSF/SequencedItemStream.h"
-#include "llvm/DebugInfo/PDB/Raw/RawConstants.h"
+#include "llvm/DebugInfo/PDB/Native/RawConstants.h"
 #include "llvm/Support/Allocator.h"
 #include "llvm/Support/Error.h"
 
index 0d232f15d7458d73ac76617d8fa2bc056f6f7493..900a9851a8c861ba3680480b1fbeaeda14ff734a 100644 (file)
@@ -12,7 +12,7 @@
 
 #include "llvm/Config/llvm-config.h"
 #include "llvm/DebugInfo/CodeView/CodeView.h"
-#include "llvm/DebugInfo/PDB/Raw/RawTypes.h"
+#include "llvm/DebugInfo/PDB/Native/RawTypes.h"
 #include <cstdint>
 #include <cstring>
 #include <functional>
index 1a995e6b3517a8ae22803d1b276f2642266e0217..0f68c633732944543c17937f531a525b4f534098 100644 (file)
@@ -27,32 +27,32 @@ if(LLVM_ENABLE_DIA_SDK)
     set(LIBPDB_ADDITIONAL_HEADER_DIRS "${LLVM_MAIN_INCLUDE_DIR}/llvm/DebugInfo/PDB/DIA")
 endif()
 
-add_pdb_impl_folder(Raw
-  Raw/DbiStream.cpp
-  Raw/DbiStreamBuilder.cpp
-  Raw/EnumTables.cpp
-  Raw/GlobalsStream.cpp
-  Raw/GSI.cpp
-  Raw/Hash.cpp
-  Raw/HashTable.cpp
-  Raw/InfoStream.cpp
-  Raw/InfoStreamBuilder.cpp
-  Raw/ModInfo.cpp
-  Raw/ModStream.cpp
-  Raw/NamedStreamMap.cpp
-  Raw/PDBFile.cpp
-  Raw/PDBFileBuilder.cpp
-  Raw/PublicsStream.cpp
-  Raw/RawError.cpp
-  Raw/RawSession.cpp
-  Raw/StringTable.cpp
-  Raw/StringTableBuilder.cpp
-  Raw/SymbolStream.cpp
-  Raw/TpiHashing.cpp
-  Raw/TpiStream.cpp
-  Raw/TpiStreamBuilder.cpp)
+add_pdb_impl_folder(Native
+  Native/DbiStream.cpp
+  Native/DbiStreamBuilder.cpp
+  Native/EnumTables.cpp
+  Native/GlobalsStream.cpp
+  Native/GSI.cpp
+  Native/Hash.cpp
+  Native/HashTable.cpp
+  Native/InfoStream.cpp
+  Native/InfoStreamBuilder.cpp
+  Native/ModInfo.cpp
+  Native/ModStream.cpp
+  Native/NamedStreamMap.cpp
+  Native/NativeSession.cpp
+  Native/PDBFile.cpp
+  Native/PDBFileBuilder.cpp
+  Native/PublicsStream.cpp
+  Native/RawError.cpp
+  Native/StringTable.cpp
+  Native/StringTableBuilder.cpp
+  Native/SymbolStream.cpp
+  Native/TpiHashing.cpp
+  Native/TpiStream.cpp
+  Native/TpiStreamBuilder.cpp)
 
-list(APPEND LIBPDB_ADDITIONAL_HEADER_DIRS "${LLVM_MAIN_INCLUDE_DIR}/llvm/DebugInfo/PDB/Raw")
+list(APPEND LIBPDB_ADDITIONAL_HEADER_DIRS "${LLVM_MAIN_INCLUDE_DIR}/llvm/DebugInfo/PDB/Native")
 list(APPEND LIBPDB_ADDITIONAL_HEADER_DIRS "${LLVM_MAIN_INCLUDE_DIR}/llvm/DebugInfo/PDB")
 
 add_llvm_library(LLVMDebugInfoPDB
similarity index 96%
rename from lib/DebugInfo/PDB/Raw/DbiStream.cpp
rename to lib/DebugInfo/PDB/Native/DbiStream.cpp
index cb390d2fa0614e4756c1321913da1fee6a6c6063..5d15e62d3e49a697064b42fc0cd69fccfb80de16 100644 (file)
@@ -7,19 +7,19 @@
 //
 //===----------------------------------------------------------------------===//
 
+#include "llvm/DebugInfo/PDB/Native/DbiStream.h"
 #include "llvm/ADT/StringRef.h"
 #include "llvm/DebugInfo/MSF/MappedBlockStream.h"
 #include "llvm/DebugInfo/MSF/StreamArray.h"
 #include "llvm/DebugInfo/MSF/StreamReader.h"
+#include "llvm/DebugInfo/PDB/Native/ISectionContribVisitor.h"
+#include "llvm/DebugInfo/PDB/Native/InfoStream.h"
+#include "llvm/DebugInfo/PDB/Native/ModInfo.h"
+#include "llvm/DebugInfo/PDB/Native/PDBFile.h"
+#include "llvm/DebugInfo/PDB/Native/RawConstants.h"
+#include "llvm/DebugInfo/PDB/Native/RawError.h"
+#include "llvm/DebugInfo/PDB/Native/RawTypes.h"
 #include "llvm/DebugInfo/PDB/PDBTypes.h"
-#include "llvm/DebugInfo/PDB/Raw/DbiStream.h"
-#include "llvm/DebugInfo/PDB/Raw/ISectionContribVisitor.h"
-#include "llvm/DebugInfo/PDB/Raw/InfoStream.h"
-#include "llvm/DebugInfo/PDB/Raw/ModInfo.h"
-#include "llvm/DebugInfo/PDB/Raw/PDBFile.h"
-#include "llvm/DebugInfo/PDB/Raw/RawConstants.h"
-#include "llvm/DebugInfo/PDB/Raw/RawError.h"
-#include "llvm/DebugInfo/PDB/Raw/RawTypes.h"
 #include "llvm/Object/COFF.h"
 #include "llvm/Support/Error.h"
 #include <algorithm>
@@ -47,8 +47,7 @@ static Error loadSectionContribs(FixedStreamArray<ContribType> &Output,
 }
 
 DbiStream::DbiStream(PDBFile &File, std::unique_ptr<MappedBlockStream> Stream)
-    : Pdb(File), Stream(std::move(Stream)), Header(nullptr) {
-}
+    : Pdb(File), Stream(std::move(Stream)), Header(nullptr) {}
 
 DbiStream::~DbiStream() = default;
 
@@ -126,8 +125,8 @@ Error DbiStream::reload() {
     return EC;
   if (auto EC = Reader.readStreamRef(ECSubstream, Header->ECSubstreamSize))
     return EC;
-  if (auto EC = Reader.readArray(DbgStreams, Header->OptionalDbgHdrSize /
-                                                 sizeof(ulittle16_t)))
+  if (auto EC = Reader.readArray(
+          DbgStreams, Header->OptionalDbgHdrSize / sizeof(ulittle16_t)))
     return EC;
 
   if (auto EC = initializeSectionContributionData())
similarity index 98%
rename from lib/DebugInfo/PDB/Raw/DbiStreamBuilder.cpp
rename to lib/DebugInfo/PDB/Native/DbiStreamBuilder.cpp
index 1d5b8d693b1eaea6612bca9a84e88da761fc4bd7..df6e9b060df135913ec01f3de97c84641a0b415c 100644 (file)
@@ -7,14 +7,14 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "llvm/DebugInfo/PDB/Raw/DbiStreamBuilder.h"
+#include "llvm/DebugInfo/PDB/Native/DbiStreamBuilder.h"
 
 #include "llvm/ADT/ArrayRef.h"
 #include "llvm/DebugInfo/MSF/MSFBuilder.h"
 #include "llvm/DebugInfo/MSF/MappedBlockStream.h"
 #include "llvm/DebugInfo/MSF/StreamWriter.h"
-#include "llvm/DebugInfo/PDB/Raw/DbiStream.h"
-#include "llvm/DebugInfo/PDB/Raw/RawError.h"
+#include "llvm/DebugInfo/PDB/Native/DbiStream.h"
+#include "llvm/DebugInfo/PDB/Native/RawError.h"
 #include "llvm/Object/COFF.h"
 #include "llvm/Support/COFF.h"
 
similarity index 92%
rename from lib/DebugInfo/PDB/Raw/EnumTables.cpp
rename to lib/DebugInfo/PDB/Native/EnumTables.cpp
index fc9270c6994780bf648241c9a5639e78a0fc4f43..b3837dc72e5b2b0fdd98b6d10c026795bfd42fa7 100644 (file)
@@ -7,8 +7,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "llvm/DebugInfo/PDB/Raw/EnumTables.h"
-#include "llvm/DebugInfo/PDB/Raw/RawConstants.h"
+#include "llvm/DebugInfo/PDB/Native/EnumTables.h"
+#include "llvm/DebugInfo/PDB/Native/RawConstants.h"
 
 using namespace llvm;
 using namespace llvm::pdb;
similarity index 97%
rename from lib/DebugInfo/PDB/Raw/GSI.cpp
rename to lib/DebugInfo/PDB/Native/GSI.cpp
index 6ecbb5c8cfadaf68a002f0dea6219f0e870ef16e..c98603f87e1c45bdac7332fc0299c1a69ed1d684 100644 (file)
@@ -11,8 +11,8 @@
 
 #include "llvm/DebugInfo/MSF/StreamArray.h"
 #include "llvm/DebugInfo/MSF/StreamReader.h"
-#include "llvm/DebugInfo/PDB/Raw/RawError.h"
-#include "llvm/DebugInfo/PDB/Raw/RawTypes.h"
+#include "llvm/DebugInfo/PDB/Native/RawError.h"
+#include "llvm/DebugInfo/PDB/Native/RawTypes.h"
 
 #include "llvm/Support/Error.h"
 
similarity index 97%
rename from lib/DebugInfo/PDB/Raw/GSI.h
rename to lib/DebugInfo/PDB/Native/GSI.h
index 82cebd9465387f1e04bc602bea0c6af2a297736c..d5f2fb1f12116764d42d8acd8523f9bfd8a4ad32 100644 (file)
@@ -26,7 +26,7 @@
 #define LLVM_LIB_DEBUGINFO_PDB_RAW_GSI_H
 
 #include "llvm/DebugInfo/MSF/StreamArray.h"
-#include "llvm/DebugInfo/PDB/Raw/RawTypes.h"
+#include "llvm/DebugInfo/PDB/Native/RawTypes.h"
 
 #include "llvm/Support/Endian.h"
 #include "llvm/Support/Error.h"
similarity index 95%
rename from lib/DebugInfo/PDB/Raw/GlobalsStream.cpp
rename to lib/DebugInfo/PDB/Native/GlobalsStream.cpp
index 31afc9200b1b5f2d92d7845168e7a1a6bba905a7..2f204ed01906aaac377c09d9e61c9ba694e0a1ea 100644 (file)
@@ -7,9 +7,9 @@
 //
 //===----------------------------------------------------------------------===//
 
+#include "llvm/DebugInfo/PDB/Native/GlobalsStream.h"
 #include "GSI.h"
 #include "llvm/DebugInfo/MSF/StreamReader.h"
-#include "llvm/DebugInfo/PDB/Raw/GlobalsStream.h"
 #include "llvm/Support/Error.h"
 #include <algorithm>
 
similarity index 98%
rename from lib/DebugInfo/PDB/Raw/Hash.cpp
rename to lib/DebugInfo/PDB/Native/Hash.cpp
index b9f685ec69d41560c6ab5b8e3fea44f7b10c6319..2ad3f55dc5c374cfc62db56e3d0d64e5e03fda22 100644 (file)
@@ -7,7 +7,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "llvm/DebugInfo/PDB/Raw/Hash.h"
+#include "llvm/DebugInfo/PDB/Native/Hash.h"
 
 #include "llvm/ADT/ArrayRef.h"
 #include "llvm/Support/Endian.h"
similarity index 98%
rename from lib/DebugInfo/PDB/Raw/HashTable.cpp
rename to lib/DebugInfo/PDB/Native/HashTable.cpp
index aadc13e53a5cb38baf317e4d25523d2e96832498..b3fe6fa45c5b1f13c91f7f08f176d42f37e1f9cb 100644 (file)
@@ -7,11 +7,11 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "llvm/DebugInfo/PDB/Raw/HashTable.h"
+#include "llvm/DebugInfo/PDB/Native/HashTable.h"
 
 #include "llvm/ADT/Optional.h"
 #include "llvm/ADT/SparseBitVector.h"
-#include "llvm/DebugInfo/PDB/Raw/RawError.h"
+#include "llvm/DebugInfo/PDB/Native/RawError.h"
 
 #include <assert.h>
 
similarity index 89%
rename from lib/DebugInfo/PDB/Raw/InfoStream.cpp
rename to lib/DebugInfo/PDB/Native/InfoStream.cpp
index 9abcfbf02448c128b5b4b7c94f21a44f3e43dc64..b003ecc14400cf9de14002764ca144347f116fe6 100644 (file)
@@ -7,15 +7,15 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "llvm/DebugInfo/PDB/Raw/InfoStream.h"
+#include "llvm/DebugInfo/PDB/Native/InfoStream.h"
 #include "llvm/ADT/BitVector.h"
 #include "llvm/ADT/SmallVector.h"
 #include "llvm/DebugInfo/MSF/StreamReader.h"
 #include "llvm/DebugInfo/MSF/StreamWriter.h"
-#include "llvm/DebugInfo/PDB/Raw/PDBFile.h"
-#include "llvm/DebugInfo/PDB/Raw/RawConstants.h"
-#include "llvm/DebugInfo/PDB/Raw/RawError.h"
-#include "llvm/DebugInfo/PDB/Raw/RawTypes.h"
+#include "llvm/DebugInfo/PDB/Native/PDBFile.h"
+#include "llvm/DebugInfo/PDB/Native/RawConstants.h"
+#include "llvm/DebugInfo/PDB/Native/RawError.h"
+#include "llvm/DebugInfo/PDB/Native/RawTypes.h"
 
 using namespace llvm;
 using namespace llvm::codeview;
similarity index 84%
rename from lib/DebugInfo/PDB/Raw/InfoStreamBuilder.cpp
rename to lib/DebugInfo/PDB/Native/InfoStreamBuilder.cpp
index 4d8eb85814dcd7e067ab2a11ba76aaa7fa42af46..d45bd10729f2e82b2d9d162b8bd39a954a960ce9 100644 (file)
@@ -7,16 +7,16 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "llvm/DebugInfo/PDB/Raw/InfoStreamBuilder.h"
+#include "llvm/DebugInfo/PDB/Native/InfoStreamBuilder.h"
 
 #include "llvm/DebugInfo/MSF/MSFBuilder.h"
 #include "llvm/DebugInfo/MSF/MappedBlockStream.h"
 #include "llvm/DebugInfo/MSF/StreamWriter.h"
-#include "llvm/DebugInfo/PDB/Raw/InfoStream.h"
-#include "llvm/DebugInfo/PDB/Raw/NamedStreamMap.h"
-#include "llvm/DebugInfo/PDB/Raw/PDBFileBuilder.h"
-#include "llvm/DebugInfo/PDB/Raw/RawError.h"
-#include "llvm/DebugInfo/PDB/Raw/RawTypes.h"
+#include "llvm/DebugInfo/PDB/Native/InfoStream.h"
+#include "llvm/DebugInfo/PDB/Native/NamedStreamMap.h"
+#include "llvm/DebugInfo/PDB/Native/PDBFileBuilder.h"
+#include "llvm/DebugInfo/PDB/Native/RawError.h"
+#include "llvm/DebugInfo/PDB/Native/RawTypes.h"
 
 using namespace llvm;
 using namespace llvm::codeview;
similarity index 95%
rename from lib/DebugInfo/PDB/Raw/ModInfo.cpp
rename to lib/DebugInfo/PDB/Native/ModInfo.cpp
index b34d7700d036086997c136f49e2e7d304b9ef525..762a92bc18ebf6073971ca34f7eec8db3cb109cf 100644 (file)
@@ -7,9 +7,9 @@
 //
 //===----------------------------------------------------------------------===//
 
+#include "llvm/DebugInfo/PDB/Native/ModInfo.h"
 #include "llvm/DebugInfo/MSF/StreamReader.h"
-#include "llvm/DebugInfo/PDB/Raw/ModInfo.h"
-#include "llvm/DebugInfo/PDB/Raw/RawTypes.h"
+#include "llvm/DebugInfo/PDB/Native/RawTypes.h"
 #include "llvm/Support/Endian.h"
 #include "llvm/Support/Error.h"
 #include "llvm/Support/MathExtras.h"
similarity index 91%
rename from lib/DebugInfo/PDB/Raw/ModStream.cpp
rename to lib/DebugInfo/PDB/Native/ModStream.cpp
index 0ffc5b7d44aac402f4f43f9f869e0fbc11805895..25370f26ec3ba2c4641273f9e1be4c53a649bfba 100644 (file)
@@ -7,15 +7,15 @@
 //
 //===----------------------------------------------------------------------===//
 
+#include "llvm/DebugInfo/PDB/Native/ModStream.h"
 #include "llvm/ADT/iterator_range.h"
 #include "llvm/DebugInfo/CodeView/SymbolRecord.h"
 #include "llvm/DebugInfo/MSF/StreamReader.h"
 #include "llvm/DebugInfo/MSF/StreamRef.h"
-#include "llvm/DebugInfo/PDB/Raw/ModInfo.h"
-#include "llvm/DebugInfo/PDB/Raw/ModStream.h"
-#include "llvm/DebugInfo/PDB/Raw/PDBFile.h"
-#include "llvm/DebugInfo/PDB/Raw/RawError.h"
-#include "llvm/DebugInfo/PDB/Raw/RawTypes.h"
+#include "llvm/DebugInfo/PDB/Native/ModInfo.h"
+#include "llvm/DebugInfo/PDB/Native/PDBFile.h"
+#include "llvm/DebugInfo/PDB/Native/RawError.h"
+#include "llvm/DebugInfo/PDB/Native/RawTypes.h"
 #include "llvm/Support/Error.h"
 #include <algorithm>
 #include <cstdint>
similarity index 96%
rename from lib/DebugInfo/PDB/Raw/NamedStreamMap.cpp
rename to lib/DebugInfo/PDB/Native/NamedStreamMap.cpp
index 54d2649ac226a60446ac22d719065c0e49a71f8d..47fd0e1ba24caf0ec7b8ff761aeb2ef1f4f2854f 100644 (file)
@@ -7,15 +7,15 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "llvm/DebugInfo/PDB/Raw/NamedStreamMap.h"
+#include "llvm/DebugInfo/PDB/Native/NamedStreamMap.h"
 
 #include "llvm/ADT/SparseBitVector.h"
 #include "llvm/ADT/StringMap.h"
 #include "llvm/ADT/StringRef.h"
 #include "llvm/ADT/iterator_range.h"
 #include "llvm/DebugInfo/MSF/StreamReader.h"
-#include "llvm/DebugInfo/PDB/Raw/HashTable.h"
-#include "llvm/DebugInfo/PDB/Raw/RawError.h"
+#include "llvm/DebugInfo/PDB/Native/HashTable.h"
+#include "llvm/DebugInfo/PDB/Native/RawError.h"
 #include "llvm/Support/Error.h"
 #include <algorithm>
 #include <cstdint>
similarity index 50%
rename from lib/DebugInfo/PDB/Raw/RawSession.cpp
rename to lib/DebugInfo/PDB/Native/NativeSession.cpp
index cd3a2064c71722535db8b5ad9e93bb80177da828..e2c23317511511ef9eb497c4e21d0a27ab54525a 100644 (file)
@@ -1,4 +1,4 @@
-//===- RawSession.cpp - Raw implementation of IPDBSession -------*- C++ -*-===//
+//===- NativeSession.cpp - Native implementation of IPDBSession -*- C++ -*-===//
 //
 //                     The LLVM Compiler Infrastructure
 //
@@ -7,16 +7,17 @@
 //
 //===----------------------------------------------------------------------===//
 
+#include "llvm/DebugInfo/PDB/Native/NativeSession.h"
+
 #include "llvm/ADT/STLExtras.h"
 #include "llvm/DebugInfo/MSF/ByteStream.h"
 #include "llvm/DebugInfo/PDB/GenericError.h"
 #include "llvm/DebugInfo/PDB/IPDBEnumChildren.h"
 #include "llvm/DebugInfo/PDB/IPDBSourceFile.h"
+#include "llvm/DebugInfo/PDB/Native/PDBFile.h"
+#include "llvm/DebugInfo/PDB/Native/RawError.h"
 #include "llvm/DebugInfo/PDB/PDBSymbolCompiland.h"
 #include "llvm/DebugInfo/PDB/PDBSymbolExe.h"
-#include "llvm/DebugInfo/PDB/Raw/PDBFile.h"
-#include "llvm/DebugInfo/PDB/Raw/RawError.h"
-#include "llvm/DebugInfo/PDB/Raw/RawSession.h"
 #include "llvm/Support/Allocator.h"
 #include "llvm/Support/Error.h"
 #include "llvm/Support/ErrorOr.h"
@@ -28,14 +29,14 @@ using namespace llvm;
 using namespace llvm::msf;
 using namespace llvm::pdb;
 
-RawSession::RawSession(std::unique_ptr<PDBFile> PdbFile,
-                       std::unique_ptr<BumpPtrAllocator> Allocator)
+NativeSession::NativeSession(std::unique_ptr<PDBFile> PdbFile,
+                             std::unique_ptr<BumpPtrAllocator> Allocator)
     : Pdb(std::move(PdbFile)), Allocator(std::move(Allocator)) {}
 
-RawSession::~RawSession() = default;
+NativeSession::~NativeSession() = default;
 
-Error RawSession::createFromPdb(StringRef Path,
-                                std::unique_ptr<IPDBSession> &Session) {
+Error NativeSession::createFromPdb(StringRef Path,
+                                   std::unique_ptr<IPDBSession> &Session) {
   ErrorOr<std::unique_ptr<MemoryBuffer>> ErrorOrBuffer =
       MemoryBuffer::getFileOrSTDIN(Path, /*FileSize=*/-1,
                                    /*RequiresNullTerminator=*/false);
@@ -53,84 +54,86 @@ Error RawSession::createFromPdb(StringRef Path,
     return EC;
 
   Session =
-      llvm::make_unique<RawSession>(std::move(File), std::move(Allocator));
+      llvm::make_unique<NativeSession>(std::move(File), std::move(Allocator));
 
   return Error::success();
 }
 
-Error RawSession::createFromExe(StringRef Path,
-                                std::unique_ptr<IPDBSession> &Session) {
+Error NativeSession::createFromExe(StringRef Path,
+                                   std::unique_ptr<IPDBSession> &Session) {
   return make_error<RawError>(raw_error_code::feature_unsupported);
 }
 
-uint64_t RawSession::getLoadAddress() const { return 0; }
+uint64_t NativeSession::getLoadAddress() const { return 0; }
 
-void RawSession::setLoadAddress(uint64_t Address) {}
+void NativeSession::setLoadAddress(uint64_t Address) {}
 
-std::unique_ptr<PDBSymbolExe> RawSession::getGlobalScope() const {
+std::unique_ptr<PDBSymbolExe> NativeSession::getGlobalScope() const {
   return nullptr;
 }
 
-std::unique_ptr<PDBSymbol> RawSession::getSymbolById(uint32_t SymbolId) const {
+std::unique_ptr<PDBSymbol>
+NativeSession::getSymbolById(uint32_t SymbolId) const {
   return nullptr;
 }
 
 std::unique_ptr<PDBSymbol>
-RawSession::findSymbolByAddress(uint64_t Address, PDB_SymType Type) const {
+NativeSession::findSymbolByAddress(uint64_t Address, PDB_SymType Type) const {
   return nullptr;
 }
 
 std::unique_ptr<IPDBEnumLineNumbers>
-RawSession::findLineNumbers(const PDBSymbolCompiland &Compiland,
-                            const IPDBSourceFile &File) const {
+NativeSession::findLineNumbers(const PDBSymbolCompiland &Compiland,
+                               const IPDBSourceFile &File) const {
   return nullptr;
 }
 
 std::unique_ptr<IPDBEnumLineNumbers>
-RawSession::findLineNumbersByAddress(uint64_t Address, uint32_t Length) const {
+NativeSession::findLineNumbersByAddress(uint64_t Address,
+                                        uint32_t Length) const {
   return nullptr;
 }
 
 std::unique_ptr<IPDBEnumSourceFiles>
-RawSession::findSourceFiles(const PDBSymbolCompiland *Compiland,
-                            StringRef Pattern,
-                            PDB_NameSearchFlags Flags) const {
+NativeSession::findSourceFiles(const PDBSymbolCompiland *Compiland,
+                               StringRef Pattern,
+                               PDB_NameSearchFlags Flags) const {
   return nullptr;
 }
 
 std::unique_ptr<IPDBSourceFile>
-RawSession::findOneSourceFile(const PDBSymbolCompiland *Compiland,
-                              StringRef Pattern,
-                              PDB_NameSearchFlags Flags) const {
+NativeSession::findOneSourceFile(const PDBSymbolCompiland *Compiland,
+                                 StringRef Pattern,
+                                 PDB_NameSearchFlags Flags) const {
   return nullptr;
 }
 
 std::unique_ptr<IPDBEnumChildren<PDBSymbolCompiland>>
-RawSession::findCompilandsForSourceFile(StringRef Pattern,
-                                        PDB_NameSearchFlags Flags) const {
+NativeSession::findCompilandsForSourceFile(StringRef Pattern,
+                                           PDB_NameSearchFlags Flags) const {
   return nullptr;
 }
 
 std::unique_ptr<PDBSymbolCompiland>
-RawSession::findOneCompilandForSourceFile(StringRef Pattern,
-                                          PDB_NameSearchFlags Flags) const {
+NativeSession::findOneCompilandForSourceFile(StringRef Pattern,
+                                             PDB_NameSearchFlags Flags) const {
   return nullptr;
 }
 
-std::unique_ptr<IPDBEnumSourceFiles> RawSession::getAllSourceFiles() const {
+std::unique_ptr<IPDBEnumSourceFiles> NativeSession::getAllSourceFiles() const {
   return nullptr;
 }
 
-std::unique_ptr<IPDBEnumSourceFiles> RawSession::getSourceFilesForCompiland(
+std::unique_ptr<IPDBEnumSourceFiles> NativeSession::getSourceFilesForCompiland(
     const PDBSymbolCompiland &Compiland) const {
   return nullptr;
 }
 
 std::unique_ptr<IPDBSourceFile>
-RawSession::getSourceFileById(uint32_t FileId) const {
+NativeSession::getSourceFileById(uint32_t FileId) const {
   return nullptr;
 }
 
-std::unique_ptr<IPDBEnumDataStreams> RawSession::getDebugStreams() const {
+std::unique_ptr<IPDBEnumDataStreams> NativeSession::getDebugStreams() const {
   return nullptr;
 }
similarity index 91%
rename from lib/DebugInfo/PDB/Raw/PDBFile.cpp
rename to lib/DebugInfo/PDB/Native/PDBFile.cpp
index aef86c2ea995aa4625bb6f91f7d0748b0c94af7d..02e883b841868e001163d1de7c41a000eeecd49e 100644 (file)
@@ -7,7 +7,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "llvm/DebugInfo/PDB/Raw/PDBFile.h"
+#include "llvm/DebugInfo/PDB/Native/PDBFile.h"
 #include "llvm/ADT/ArrayRef.h"
 #include "llvm/ADT/STLExtras.h"
 #include "llvm/DebugInfo/MSF/MSFCommon.h"
 #include "llvm/DebugInfo/MSF/StreamArray.h"
 #include "llvm/DebugInfo/MSF/StreamInterface.h"
 #include "llvm/DebugInfo/MSF/StreamReader.h"
-#include "llvm/DebugInfo/PDB/Raw/DbiStream.h"
-#include "llvm/DebugInfo/PDB/Raw/GlobalsStream.h"
-#include "llvm/DebugInfo/PDB/Raw/InfoStream.h"
-#include "llvm/DebugInfo/PDB/Raw/PublicsStream.h"
-#include "llvm/DebugInfo/PDB/Raw/RawError.h"
-#include "llvm/DebugInfo/PDB/Raw/StringTable.h"
-#include "llvm/DebugInfo/PDB/Raw/SymbolStream.h"
-#include "llvm/DebugInfo/PDB/Raw/TpiStream.h"
+#include "llvm/DebugInfo/PDB/Native/DbiStream.h"
+#include "llvm/DebugInfo/PDB/Native/GlobalsStream.h"
+#include "llvm/DebugInfo/PDB/Native/InfoStream.h"
+#include "llvm/DebugInfo/PDB/Native/PublicsStream.h"
+#include "llvm/DebugInfo/PDB/Native/RawError.h"
+#include "llvm/DebugInfo/PDB/Native/StringTable.h"
+#include "llvm/DebugInfo/PDB/Native/SymbolStream.h"
+#include "llvm/DebugInfo/PDB/Native/TpiStream.h"
 #include "llvm/Support/Endian.h"
 #include "llvm/Support/Error.h"
 #include <algorithm>
@@ -229,7 +229,8 @@ Expected<GlobalsStream &> PDBFile::getPDBGlobalsStream() {
 
     auto GlobalS = safelyCreateIndexedStream(
         ContainerLayout, *Buffer, DbiS->getGlobalSymbolStreamIndex());
-    if (!GlobalS) return GlobalS.takeError();
+    if (!GlobalS)
+      return GlobalS.takeError();
     auto TempGlobals = llvm::make_unique<GlobalsStream>(std::move(*GlobalS));
     if (auto EC = TempGlobals->reload())
       return std::move(EC);
@@ -241,7 +242,8 @@ Expected<GlobalsStream &> PDBFile::getPDBGlobalsStream() {
 Expected<InfoStream &> PDBFile::getPDBInfoStream() {
   if (!Info) {
     auto InfoS = safelyCreateIndexedStream(ContainerLayout, *Buffer, StreamPDB);
-    if (!InfoS) return InfoS.takeError();
+    if (!InfoS)
+      return InfoS.takeError();
     auto TempInfo = llvm::make_unique<InfoStream>(std::move(*InfoS));
     if (auto EC = TempInfo->reload())
       return std::move(EC);
@@ -253,7 +255,8 @@ Expected<InfoStream &> PDBFile::getPDBInfoStream() {
 Expected<DbiStream &> PDBFile::getPDBDbiStream() {
   if (!Dbi) {
     auto DbiS = safelyCreateIndexedStream(ContainerLayout, *Buffer, StreamDBI);
-    if (!DbiS) return DbiS.takeError();
+    if (!DbiS)
+      return DbiS.takeError();
     auto TempDbi = llvm::make_unique<DbiStream>(*this, std::move(*DbiS));
     if (auto EC = TempDbi->reload())
       return std::move(EC);
@@ -265,7 +268,8 @@ Expected<DbiStream &> PDBFile::getPDBDbiStream() {
 Expected<TpiStream &> PDBFile::getPDBTpiStream() {
   if (!Tpi) {
     auto TpiS = safelyCreateIndexedStream(ContainerLayout, *Buffer, StreamTPI);
-    if (!TpiS) return TpiS.takeError();
+    if (!TpiS)
+      return TpiS.takeError();
     auto TempTpi = llvm::make_unique<TpiStream>(*this, std::move(*TpiS));
     if (auto EC = TempTpi->reload())
       return std::move(EC);
@@ -277,7 +281,8 @@ Expected<TpiStream &> PDBFile::getPDBTpiStream() {
 Expected<TpiStream &> PDBFile::getPDBIpiStream() {
   if (!Ipi) {
     auto IpiS = safelyCreateIndexedStream(ContainerLayout, *Buffer, StreamIPI);
-    if (!IpiS) return IpiS.takeError();
+    if (!IpiS)
+      return IpiS.takeError();
     auto TempIpi = llvm::make_unique<TpiStream>(*this, std::move(*IpiS));
     if (auto EC = TempIpi->reload())
       return std::move(EC);
@@ -294,7 +299,8 @@ Expected<PublicsStream &> PDBFile::getPDBPublicsStream() {
 
     auto PublicS = safelyCreateIndexedStream(
         ContainerLayout, *Buffer, DbiS->getPublicSymbolStreamIndex());
-    if (!PublicS) return PublicS.takeError();
+    if (!PublicS)
+      return PublicS.takeError();
     auto TempPublics =
         llvm::make_unique<PublicsStream>(*this, std::move(*PublicS));
     if (auto EC = TempPublics->reload())
@@ -313,7 +319,8 @@ Expected<SymbolStream &> PDBFile::getPDBSymbolStream() {
     uint32_t SymbolStreamNum = DbiS->getSymRecordStreamIndex();
     auto SymbolS =
         safelyCreateIndexedStream(ContainerLayout, *Buffer, SymbolStreamNum);
-    if (!SymbolS) return SymbolS.takeError();
+    if (!SymbolS)
+      return SymbolS.takeError();
 
     auto TempSymbols = llvm::make_unique<SymbolStream>(std::move(*SymbolS));
     if (auto EC = TempSymbols->reload())
@@ -333,7 +340,8 @@ Expected<StringTable &> PDBFile::getStringTable() {
 
     auto NS =
         safelyCreateIndexedStream(ContainerLayout, *Buffer, NameStreamIndex);
-    if (!NS) return NS.takeError();
+    if (!NS)
+      return NS.takeError();
 
     StreamReader Reader(**NS);
     auto N = llvm::make_unique<StringTable>();
@@ -349,7 +357,8 @@ bool PDBFile::hasPDBDbiStream() const { return StreamDBI < getNumStreams(); }
 
 bool PDBFile::hasPDBGlobalsStream() {
   auto DbiS = getPDBDbiStream();
-  if (!DbiS) return false;
+  if (!DbiS)
+    return false;
   return DbiS->getGlobalSymbolStreamIndex() < getNumStreams();
 }
 
@@ -359,13 +368,15 @@ bool PDBFile::hasPDBIpiStream() const { return StreamIPI < getNumStreams(); }
 
 bool PDBFile::hasPDBPublicsStream() {
   auto DbiS = getPDBDbiStream();
-  if (!DbiS) return false;
+  if (!DbiS)
+    return false;
   return DbiS->getPublicSymbolStreamIndex() < getNumStreams();
 }
 
 bool PDBFile::hasPDBSymbolStream() {
   auto DbiS = getPDBDbiStream();
-  if (!DbiS) return false;
+  if (!DbiS)
+    return false;
   return DbiS->getSymRecordStreamIndex() < getNumStreams();
 }
 
@@ -373,7 +384,8 @@ bool PDBFile::hasPDBTpiStream() const { return StreamTPI < getNumStreams(); }
 
 bool PDBFile::hasStringTable() {
   auto IS = getPDBInfoStream();
-  if (!IS) return false;
+  if (!IS)
+    return false;
   return IS->getNamedStreamIndex("/names") < getNumStreams();
 }
 
@@ -382,9 +394,10 @@ bool PDBFile::hasStringTable() {
 /// If it does not, the return value will have an MSFError with
 /// code msf_error_code::no_stream. Else, the return value will
 /// contain the stream returned by createIndexedStream().
-Expected<std::unique_ptr<MappedBlockStream>> PDBFile::safelyCreateIndexedStream(
-    const MSFLayout &Layout, const ReadableStream &MsfData,
-    uint32_t StreamIndex) const {
+Expected<std::unique_ptr<MappedBlockStream>>
+PDBFile::safelyCreateIndexedStream(const MSFLayout &Layout,
+                                   const ReadableStream &MsfData,
+                                   uint32_t StreamIndex) const {
   if (StreamIndex >= getNumStreams())
     return make_error<RawError>(raw_error_code::no_stream);
   return MappedBlockStream::createIndexedStream(Layout, MsfData, StreamIndex);
similarity index 90%
rename from lib/DebugInfo/PDB/Raw/PDBFileBuilder.cpp
rename to lib/DebugInfo/PDB/Native/PDBFileBuilder.cpp
index cfd5ba6b83e59b2619caea0e31a85f5bee9b8868..57ca2ba488ae2298ada405805ef9b2f141251269 100644 (file)
@@ -7,7 +7,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "llvm/DebugInfo/PDB/Raw/PDBFileBuilder.h"
+#include "llvm/DebugInfo/PDB/Native/PDBFileBuilder.h"
 
 #include "llvm/ADT/BitVector.h"
 
 #include "llvm/DebugInfo/MSF/StreamInterface.h"
 #include "llvm/DebugInfo/MSF/StreamWriter.h"
 #include "llvm/DebugInfo/PDB/GenericError.h"
-#include "llvm/DebugInfo/PDB/Raw/DbiStream.h"
-#include "llvm/DebugInfo/PDB/Raw/DbiStreamBuilder.h"
-#include "llvm/DebugInfo/PDB/Raw/InfoStream.h"
-#include "llvm/DebugInfo/PDB/Raw/InfoStreamBuilder.h"
-#include "llvm/DebugInfo/PDB/Raw/RawError.h"
-#include "llvm/DebugInfo/PDB/Raw/StringTableBuilder.h"
-#include "llvm/DebugInfo/PDB/Raw/TpiStream.h"
-#include "llvm/DebugInfo/PDB/Raw/TpiStreamBuilder.h"
+#include "llvm/DebugInfo/PDB/Native/DbiStream.h"
+#include "llvm/DebugInfo/PDB/Native/DbiStreamBuilder.h"
+#include "llvm/DebugInfo/PDB/Native/InfoStream.h"
+#include "llvm/DebugInfo/PDB/Native/InfoStreamBuilder.h"
+#include "llvm/DebugInfo/PDB/Native/RawError.h"
+#include "llvm/DebugInfo/PDB/Native/StringTableBuilder.h"
+#include "llvm/DebugInfo/PDB/Native/TpiStream.h"
+#include "llvm/DebugInfo/PDB/Native/TpiStreamBuilder.h"
 
 using namespace llvm;
 using namespace llvm::codeview;
similarity index 95%
rename from lib/DebugInfo/PDB/Raw/PublicsStream.cpp
rename to lib/DebugInfo/PDB/Native/PublicsStream.cpp
index b31f605a078c54f8303b1f92a09ca1aff4bc1df5..ddec60a4371bc37862e22b79711cbba742223410 100644 (file)
 //
 //===----------------------------------------------------------------------===//
 
+#include "llvm/DebugInfo/PDB/Native/PublicsStream.h"
 #include "GSI.h"
 #include "llvm/ADT/iterator_range.h"
 #include "llvm/DebugInfo/CodeView/SymbolRecord.h"
 #include "llvm/DebugInfo/MSF/MappedBlockStream.h"
 #include "llvm/DebugInfo/MSF/StreamReader.h"
-#include "llvm/DebugInfo/PDB/Raw/PDBFile.h"
-#include "llvm/DebugInfo/PDB/Raw/PublicsStream.h"
-#include "llvm/DebugInfo/PDB/Raw/RawError.h"
-#include "llvm/DebugInfo/PDB/Raw/SymbolStream.h"
+#include "llvm/DebugInfo/PDB/Native/PDBFile.h"
+#include "llvm/DebugInfo/PDB/Native/RawError.h"
+#include "llvm/DebugInfo/PDB/Native/SymbolStream.h"
 #include "llvm/Support/Endian.h"
 #include "llvm/Support/Error.h"
 #include <algorithm>
similarity index 98%
rename from lib/DebugInfo/PDB/Raw/RawError.cpp
rename to lib/DebugInfo/PDB/Native/RawError.cpp
index f4a5057509eb09879d9738087143ef43feb422d0..aa126bb8f1ad864bde12665256ae041646c1b497 100644 (file)
@@ -1,4 +1,4 @@
-#include "llvm/DebugInfo/PDB/Raw/RawError.h"
+#include "llvm/DebugInfo/PDB/Native/RawError.h"
 #include "llvm/Support/ErrorHandling.h"
 #include "llvm/Support/ManagedStatic.h"
 
similarity index 94%
rename from lib/DebugInfo/PDB/Raw/StringTable.cpp
rename to lib/DebugInfo/PDB/Native/StringTable.cpp
index ed78cb42da683d55afbeb7a2a083aaecec52c944..5b8ae9b7e9c0f3b5a5c5e8e98070ef0b1e7b00ed 100644 (file)
@@ -7,13 +7,13 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "llvm/DebugInfo/PDB/Raw/StringTable.h"
+#include "llvm/DebugInfo/PDB/Native/StringTable.h"
 
 #include "llvm/ADT/ArrayRef.h"
 #include "llvm/DebugInfo/MSF/StreamReader.h"
-#include "llvm/DebugInfo/PDB/Raw/Hash.h"
-#include "llvm/DebugInfo/PDB/Raw/RawError.h"
-#include "llvm/DebugInfo/PDB/Raw/RawTypes.h"
+#include "llvm/DebugInfo/PDB/Native/Hash.h"
+#include "llvm/DebugInfo/PDB/Native/RawError.h"
+#include "llvm/DebugInfo/PDB/Native/RawTypes.h"
 #include "llvm/Support/Endian.h"
 
 using namespace llvm;
similarity index 95%
rename from lib/DebugInfo/PDB/Raw/StringTableBuilder.cpp
rename to lib/DebugInfo/PDB/Native/StringTableBuilder.cpp
index 5ae74471a1aeac0a1d2aac3fa1d09252c922237c..ef9caee4cd6b090f9920a493999918203d540b33 100644 (file)
@@ -7,11 +7,11 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "llvm/DebugInfo/PDB/Raw/StringTableBuilder.h"
+#include "llvm/DebugInfo/PDB/Native/StringTableBuilder.h"
 #include "llvm/ADT/ArrayRef.h"
 #include "llvm/DebugInfo/MSF/StreamWriter.h"
-#include "llvm/DebugInfo/PDB/Raw/Hash.h"
-#include "llvm/DebugInfo/PDB/Raw/RawTypes.h"
+#include "llvm/DebugInfo/PDB/Native/Hash.h"
+#include "llvm/DebugInfo/PDB/Native/RawTypes.h"
 #include "llvm/Support/Endian.h"
 
 using namespace llvm;
similarity index 86%
rename from lib/DebugInfo/PDB/Raw/SymbolStream.cpp
rename to lib/DebugInfo/PDB/Native/SymbolStream.cpp
index 2f3ac3497f39596d99ffbbad9d9b26633be9df33..a38d0957092c6334a89db452ffbab20cc030c111 100644 (file)
@@ -7,15 +7,15 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "llvm/DebugInfo/PDB/Raw/SymbolStream.h"
+#include "llvm/DebugInfo/PDB/Native/SymbolStream.h"
 
 #include "llvm/DebugInfo/CodeView/CodeView.h"
 #include "llvm/DebugInfo/CodeView/TypeRecord.h"
 #include "llvm/DebugInfo/MSF/MappedBlockStream.h"
 #include "llvm/DebugInfo/MSF/StreamReader.h"
-#include "llvm/DebugInfo/PDB/Raw/PDBFile.h"
-#include "llvm/DebugInfo/PDB/Raw/RawConstants.h"
-#include "llvm/DebugInfo/PDB/Raw/RawError.h"
+#include "llvm/DebugInfo/PDB/Native/PDBFile.h"
+#include "llvm/DebugInfo/PDB/Native/RawConstants.h"
+#include "llvm/DebugInfo/PDB/Native/RawError.h"
 
 #include "llvm/Support/Endian.h"
 
similarity index 96%
rename from lib/DebugInfo/PDB/Raw/TpiHashing.cpp
rename to lib/DebugInfo/PDB/Native/TpiHashing.cpp
index 6c3ddb3d57af7b1242787ae3e375c2701814e00f..16904a5a27ed3028c9e6f429a4c5597416b968ae 100644 (file)
@@ -7,10 +7,10 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "llvm/DebugInfo/PDB/Raw/TpiHashing.h"
+#include "llvm/DebugInfo/PDB/Native/TpiHashing.h"
 
-#include "llvm/DebugInfo/PDB/Raw/Hash.h"
-#include "llvm/DebugInfo/PDB/Raw/RawError.h"
+#include "llvm/DebugInfo/PDB/Native/Hash.h"
+#include "llvm/DebugInfo/PDB/Native/RawError.h"
 
 using namespace llvm;
 using namespace llvm::codeview;
similarity index 91%
rename from lib/DebugInfo/PDB/Raw/TpiStream.cpp
rename to lib/DebugInfo/PDB/Native/TpiStream.cpp
index a2cba6bcc23523f0c0a871d531fcaf1cac2dbc31..603a2c5e833999ccfe374527c5464419a5a5b7bd 100644 (file)
@@ -7,6 +7,7 @@
 //
 //===----------------------------------------------------------------------===//
 
+#include "llvm/DebugInfo/PDB/Native/TpiStream.h"
 #include "llvm/ADT/iterator_range.h"
 #include "llvm/DebugInfo/CodeView/CVTypeVisitor.h"
 #include "llvm/DebugInfo/CodeView/TypeDeserializer.h"
 #include "llvm/DebugInfo/CodeView/TypeVisitorCallbackPipeline.h"
 #include "llvm/DebugInfo/MSF/MappedBlockStream.h"
 #include "llvm/DebugInfo/MSF/StreamReader.h"
-#include "llvm/DebugInfo/PDB/Raw/PDBFile.h"
-#include "llvm/DebugInfo/PDB/Raw/RawConstants.h"
-#include "llvm/DebugInfo/PDB/Raw/RawError.h"
-#include "llvm/DebugInfo/PDB/Raw/RawTypes.h"
-#include "llvm/DebugInfo/PDB/Raw/TpiHashing.h"
-#include "llvm/DebugInfo/PDB/Raw/TpiStream.h"
+#include "llvm/DebugInfo/PDB/Native/PDBFile.h"
+#include "llvm/DebugInfo/PDB/Native/RawConstants.h"
+#include "llvm/DebugInfo/PDB/Native/RawError.h"
+#include "llvm/DebugInfo/PDB/Native/RawTypes.h"
+#include "llvm/DebugInfo/PDB/Native/TpiHashing.h"
 #include "llvm/Support/Endian.h"
 #include "llvm/Support/Error.h"
 #include <algorithm>
@@ -154,20 +154,17 @@ uint16_t TpiStream::getTypeHashStreamAuxIndex() const {
 uint32_t TpiStream::NumHashBuckets() const { return Header->NumHashBuckets; }
 uint32_t TpiStream::getHashKeySize() const { return Header->HashKeySize; }
 
-FixedStreamArray<support::ulittle32_t>
-TpiStream::getHashValues() const {
+FixedStreamArray<support::ulittle32_t> TpiStream::getHashValues() const {
   return HashValues;
 }
 
-FixedStreamArray<TypeIndexOffset>
-TpiStream::getTypeIndexOffsets() const {
+FixedStreamArray<TypeIndexOffset> TpiStream::getTypeIndexOffsets() const {
   return TypeIndexOffsets;
 }
 
 HashTable &TpiStream::getHashAdjusters() { return HashAdjusters; }
 
-iterator_range<CVTypeArray::Iterator>
-TpiStream::types(bool *HadError) const {
+iterator_range<CVTypeArray::Iterator> TpiStream::types(bool *HadError) const {
   return make_range(TypeRecords.begin(HadError), TypeRecords.end());
 }
 
similarity index 94%
rename from lib/DebugInfo/PDB/Raw/TpiStreamBuilder.cpp
rename to lib/DebugInfo/PDB/Native/TpiStreamBuilder.cpp
index c769321f18c13e20a72482cebd2c6c74d3d736cb..cff1977c8c412be2eddd2e69b6ce2d90ca438068 100644 (file)
@@ -7,6 +7,7 @@
 //
 //===----------------------------------------------------------------------===//
 
+#include "llvm/DebugInfo/PDB/Native/TpiStreamBuilder.h"
 #include "llvm/ADT/ArrayRef.h"
 #include "llvm/ADT/STLExtras.h"
 #include "llvm/DebugInfo/CodeView/TypeIndex.h"
 #include "llvm/DebugInfo/MSF/StreamArray.h"
 #include "llvm/DebugInfo/MSF/StreamReader.h"
 #include "llvm/DebugInfo/MSF/StreamWriter.h"
-#include "llvm/DebugInfo/PDB/Raw/PDBFile.h"
-#include "llvm/DebugInfo/PDB/Raw/RawError.h"
-#include "llvm/DebugInfo/PDB/Raw/RawTypes.h"
-#include "llvm/DebugInfo/PDB/Raw/TpiStream.h"
-#include "llvm/DebugInfo/PDB/Raw/TpiStreamBuilder.h"
+#include "llvm/DebugInfo/PDB/Native/PDBFile.h"
+#include "llvm/DebugInfo/PDB/Native/RawError.h"
+#include "llvm/DebugInfo/PDB/Native/RawTypes.h"
+#include "llvm/DebugInfo/PDB/Native/TpiStream.h"
 #include "llvm/Support/Allocator.h"
 #include "llvm/Support/Endian.h"
 #include "llvm/Support/Error.h"
index 0d720591b81d522fe8e925fefdcf4840fc5e043f..1011e11b586a4482d113486903c5f13dd02ba158 100644 (file)
@@ -17,7 +17,7 @@
 #if LLVM_ENABLE_DIA_SDK
 #include "llvm/DebugInfo/PDB/DIA/DIASession.h"
 #endif
-#include "llvm/DebugInfo/PDB/Raw/RawSession.h"
+#include "llvm/DebugInfo/PDB/Native/NativeSession.h"
 #include "llvm/Support/ErrorHandling.h"
 #include "llvm/Support/ManagedStatic.h"
 
@@ -28,7 +28,7 @@ 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)
-    return RawSession::createFromPdb(Path, Session);
+    return NativeSession::createFromPdb(Path, Session);
 
 #if LLVM_ENABLE_DIA_SDK
   return DIASession::createFromPdb(Path, Session);
@@ -41,7 +41,7 @@ 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)
-    return RawSession::createFromExe(Path, Session);
+    return NativeSession::createFromExe(Path, Session);
 
 #if LLVM_ENABLE_DIA_SDK
   return DIASession::createFromExe(Path, Session);
index 78a987244602327ae43ebdc97bda03a2fe9239cf..d0ea22ef94f5b56e410ae2966e527147852cc38f 100644 (file)
 #include "llvm/DebugInfo/CodeView/TypeVisitorCallbackPipeline.h"
 #include "llvm/DebugInfo/MSF/MappedBlockStream.h"
 #include "llvm/DebugInfo/MSF/StreamReader.h"
+#include "llvm/DebugInfo/PDB/Native/DbiStream.h"
+#include "llvm/DebugInfo/PDB/Native/EnumTables.h"
+#include "llvm/DebugInfo/PDB/Native/GlobalsStream.h"
+#include "llvm/DebugInfo/PDB/Native/ISectionContribVisitor.h"
+#include "llvm/DebugInfo/PDB/Native/InfoStream.h"
+#include "llvm/DebugInfo/PDB/Native/ModInfo.h"
+#include "llvm/DebugInfo/PDB/Native/ModStream.h"
+#include "llvm/DebugInfo/PDB/Native/PDBFile.h"
+#include "llvm/DebugInfo/PDB/Native/PublicsStream.h"
+#include "llvm/DebugInfo/PDB/Native/RawError.h"
+#include "llvm/DebugInfo/PDB/Native/TpiStream.h"
 #include "llvm/DebugInfo/PDB/PDBExtras.h"
-#include "llvm/DebugInfo/PDB/Raw/DbiStream.h"
-#include "llvm/DebugInfo/PDB/Raw/EnumTables.h"
-#include "llvm/DebugInfo/PDB/Raw/GlobalsStream.h"
-#include "llvm/DebugInfo/PDB/Raw/ISectionContribVisitor.h"
-#include "llvm/DebugInfo/PDB/Raw/InfoStream.h"
-#include "llvm/DebugInfo/PDB/Raw/ModInfo.h"
-#include "llvm/DebugInfo/PDB/Raw/ModStream.h"
-#include "llvm/DebugInfo/PDB/Raw/PDBFile.h"
-#include "llvm/DebugInfo/PDB/Raw/PublicsStream.h"
-#include "llvm/DebugInfo/PDB/Raw/RawError.h"
-#include "llvm/DebugInfo/PDB/Raw/TpiStream.h"
 #include "llvm/Object/COFF.h"
 #include "llvm/Support/FormatVariadic.h"
 
index 6a32080d29fac68cc329a4884adc0fe8dffe8e36..ba2acf7e7f1238556652d6b2bcc3d4526a8e0d3d 100644 (file)
 #include "llvm/DebugInfo/CodeView/TypeDeserializer.h"
 #include "llvm/DebugInfo/CodeView/TypeSerializer.h"
 #include "llvm/DebugInfo/CodeView/TypeVisitorCallbackPipeline.h"
+#include "llvm/DebugInfo/PDB/Native/PDBFile.h"
+#include "llvm/DebugInfo/PDB/Native/TpiHashing.h"
 #include "llvm/DebugInfo/PDB/PDBExtras.h"
 #include "llvm/DebugInfo/PDB/PDBTypes.h"
-#include "llvm/DebugInfo/PDB/Raw/PDBFile.h"
-#include "llvm/DebugInfo/PDB/Raw/TpiHashing.h"
 
 using namespace llvm;
 using namespace llvm::pdb;
index 4bb9e896dff6c0bf9383e6023a831ca850bd1e50..c5b49522b454f51e1ca0f1ceb0956a03736cda93 100644 (file)
@@ -16,9 +16,9 @@
 #include "llvm/DebugInfo/CodeView/SymbolRecord.h"
 #include "llvm/DebugInfo/CodeView/TypeRecord.h"
 #include "llvm/DebugInfo/MSF/MSFCommon.h"
+#include "llvm/DebugInfo/PDB/Native/PDBFile.h"
+#include "llvm/DebugInfo/PDB/Native/RawConstants.h"
 #include "llvm/DebugInfo/PDB/PDBTypes.h"
-#include "llvm/DebugInfo/PDB/Raw/PDBFile.h"
-#include "llvm/DebugInfo/PDB/Raw/RawConstants.h"
 #include "llvm/Support/Endian.h"
 #include "llvm/Support/YAMLTraits.h"
 
index f7ad328ddc9a1482cf9bcbcee9fa341897ed34d3..065a60d32a8cc23d6c3be1b52444661580f29ab6 100644 (file)
 #include "llvm-pdbdump.h"
 
 #include "llvm/DebugInfo/MSF/MappedBlockStream.h"
-#include "llvm/DebugInfo/PDB/Raw/DbiStream.h"
-#include "llvm/DebugInfo/PDB/Raw/InfoStream.h"
-#include "llvm/DebugInfo/PDB/Raw/ModStream.h"
-#include "llvm/DebugInfo/PDB/Raw/PDBFile.h"
-#include "llvm/DebugInfo/PDB/Raw/RawConstants.h"
-#include "llvm/DebugInfo/PDB/Raw/TpiStream.h"
+#include "llvm/DebugInfo/PDB/Native/DbiStream.h"
+#include "llvm/DebugInfo/PDB/Native/InfoStream.h"
+#include "llvm/DebugInfo/PDB/Native/ModStream.h"
+#include "llvm/DebugInfo/PDB/Native/PDBFile.h"
+#include "llvm/DebugInfo/PDB/Native/RawConstants.h"
+#include "llvm/DebugInfo/PDB/Native/TpiStream.h"
 
 using namespace llvm;
 using namespace llvm::pdb;
index 5c527c71c7e44a74cab0e95790af883ce47ee787..80bf9349b0cb7b16401bcbdc0cb31ef47d4cf342 100644 (file)
@@ -17,7 +17,7 @@
 #include "llvm/DebugInfo/CodeView/TypeRecord.h"
 #include "llvm/DebugInfo/CodeView/TypeSerializer.h"
 #include "llvm/DebugInfo/CodeView/TypeVisitorCallbackPipeline.h"
-#include "llvm/DebugInfo/PDB/Raw/TpiHashing.h"
+#include "llvm/DebugInfo/PDB/Native/TpiHashing.h"
 
 using namespace llvm;
 using namespace llvm::codeview;
index ccab7fe47b455ff4369fa580a040250358d8e03b..07ac65e2675827218a5d57e95e0a035ecc6411b5 100644 (file)
 #include "llvm/DebugInfo/PDB/IPDBEnumChildren.h"
 #include "llvm/DebugInfo/PDB/IPDBRawSymbol.h"
 #include "llvm/DebugInfo/PDB/IPDBSession.h"
+#include "llvm/DebugInfo/PDB/Native/DbiStream.h"
+#include "llvm/DebugInfo/PDB/Native/DbiStreamBuilder.h"
+#include "llvm/DebugInfo/PDB/Native/InfoStream.h"
+#include "llvm/DebugInfo/PDB/Native/InfoStreamBuilder.h"
+#include "llvm/DebugInfo/PDB/Native/NativeSession.h"
+#include "llvm/DebugInfo/PDB/Native/PDBFile.h"
+#include "llvm/DebugInfo/PDB/Native/PDBFileBuilder.h"
+#include "llvm/DebugInfo/PDB/Native/RawConstants.h"
+#include "llvm/DebugInfo/PDB/Native/RawError.h"
+#include "llvm/DebugInfo/PDB/Native/StringTableBuilder.h"
+#include "llvm/DebugInfo/PDB/Native/TpiStream.h"
+#include "llvm/DebugInfo/PDB/Native/TpiStreamBuilder.h"
 #include "llvm/DebugInfo/PDB/PDB.h"
 #include "llvm/DebugInfo/PDB/PDBSymbolCompiland.h"
 #include "llvm/DebugInfo/PDB/PDBSymbolData.h"
 #include "llvm/DebugInfo/PDB/PDBSymbolExe.h"
 #include "llvm/DebugInfo/PDB/PDBSymbolFunc.h"
 #include "llvm/DebugInfo/PDB/PDBSymbolThunk.h"
-#include "llvm/DebugInfo/PDB/Raw/DbiStream.h"
-#include "llvm/DebugInfo/PDB/Raw/DbiStreamBuilder.h"
-#include "llvm/DebugInfo/PDB/Raw/InfoStream.h"
-#include "llvm/DebugInfo/PDB/Raw/InfoStreamBuilder.h"
-#include "llvm/DebugInfo/PDB/Raw/PDBFile.h"
-#include "llvm/DebugInfo/PDB/Raw/PDBFileBuilder.h"
-#include "llvm/DebugInfo/PDB/Raw/RawConstants.h"
-#include "llvm/DebugInfo/PDB/Raw/RawError.h"
-#include "llvm/DebugInfo/PDB/Raw/RawSession.h"
-#include "llvm/DebugInfo/PDB/Raw/StringTableBuilder.h"
-#include "llvm/DebugInfo/PDB/Raw/TpiStream.h"
-#include "llvm/DebugInfo/PDB/Raw/TpiStreamBuilder.h"
 #include "llvm/Support/COM.h"
 #include "llvm/Support/CommandLine.h"
 #include "llvm/Support/ConvertUTF.h"
@@ -404,7 +404,7 @@ static void pdb2Yaml(StringRef Path) {
   std::unique_ptr<IPDBSession> Session;
   ExitOnErr(loadDataForPDB(PDB_ReaderType::Raw, Path, Session));
 
-  RawSession *RS = static_cast<RawSession *>(Session.get());
+  NativeSession *RS = static_cast<NativeSession *>(Session.get());
   PDBFile &File = RS->getPDBFile();
   auto O = llvm::make_unique<YAMLOutputStyle>(File);
   O = llvm::make_unique<YAMLOutputStyle>(File);
@@ -416,7 +416,7 @@ static void dumpRaw(StringRef Path) {
   std::unique_ptr<IPDBSession> Session;
   ExitOnErr(loadDataForPDB(PDB_ReaderType::Raw, Path, Session));
 
-  RawSession *RS = static_cast<RawSession *>(Session.get());
+  NativeSession *RS = static_cast<NativeSession *>(Session.get());
   PDBFile &File = RS->getPDBFile();
   auto O = llvm::make_unique<LLVMOutputStyle>(File);