]> granicus.if.org Git - llvm/commitdiff
Move pdb code into pdb namespace.
authorZachary Turner <zturner@google.com>
Wed, 4 May 2016 20:32:13 +0000 (20:32 +0000)
committerZachary Turner <zturner@google.com>
Wed, 4 May 2016 20:32:13 +0000 (20:32 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@268544 91177308-0d34-0410-b5e6-96231b3b80d8

121 files changed:
include/llvm/DebugInfo/PDB/ConcreteSymbolEnumerator.h
include/llvm/DebugInfo/PDB/DIA/DIADataStream.h
include/llvm/DebugInfo/PDB/DIA/DIAEnumDebugStreams.h
include/llvm/DebugInfo/PDB/DIA/DIAEnumLineNumbers.h
include/llvm/DebugInfo/PDB/DIA/DIAEnumSourceFiles.h
include/llvm/DebugInfo/PDB/DIA/DIAEnumSymbols.h
include/llvm/DebugInfo/PDB/DIA/DIALineNumber.h
include/llvm/DebugInfo/PDB/DIA/DIARawSymbol.h
include/llvm/DebugInfo/PDB/DIA/DIASession.h
include/llvm/DebugInfo/PDB/DIA/DIASourceFile.h
include/llvm/DebugInfo/PDB/IPDBDataStream.h
include/llvm/DebugInfo/PDB/IPDBEnumChildren.h
include/llvm/DebugInfo/PDB/IPDBLineNumber.h
include/llvm/DebugInfo/PDB/IPDBRawSymbol.h
include/llvm/DebugInfo/PDB/IPDBSession.h
include/llvm/DebugInfo/PDB/IPDBSourceFile.h
include/llvm/DebugInfo/PDB/PDB.h
include/llvm/DebugInfo/PDB/PDBContext.h
include/llvm/DebugInfo/PDB/PDBExtras.h
include/llvm/DebugInfo/PDB/PDBSymDumper.h
include/llvm/DebugInfo/PDB/PDBSymbol.h
include/llvm/DebugInfo/PDB/PDBSymbolAnnotation.h
include/llvm/DebugInfo/PDB/PDBSymbolBlock.h
include/llvm/DebugInfo/PDB/PDBSymbolCompiland.h
include/llvm/DebugInfo/PDB/PDBSymbolCompilandDetails.h
include/llvm/DebugInfo/PDB/PDBSymbolCompilandEnv.h
include/llvm/DebugInfo/PDB/PDBSymbolCustom.h
include/llvm/DebugInfo/PDB/PDBSymbolData.h
include/llvm/DebugInfo/PDB/PDBSymbolExe.h
include/llvm/DebugInfo/PDB/PDBSymbolFunc.h
include/llvm/DebugInfo/PDB/PDBSymbolFuncDebugEnd.h
include/llvm/DebugInfo/PDB/PDBSymbolFuncDebugStart.h
include/llvm/DebugInfo/PDB/PDBSymbolLabel.h
include/llvm/DebugInfo/PDB/PDBSymbolPublicSymbol.h
include/llvm/DebugInfo/PDB/PDBSymbolThunk.h
include/llvm/DebugInfo/PDB/PDBSymbolTypeArray.h
include/llvm/DebugInfo/PDB/PDBSymbolTypeBaseClass.h
include/llvm/DebugInfo/PDB/PDBSymbolTypeBuiltin.h
include/llvm/DebugInfo/PDB/PDBSymbolTypeCustom.h
include/llvm/DebugInfo/PDB/PDBSymbolTypeDimension.h
include/llvm/DebugInfo/PDB/PDBSymbolTypeEnum.h
include/llvm/DebugInfo/PDB/PDBSymbolTypeFriend.h
include/llvm/DebugInfo/PDB/PDBSymbolTypeFunctionArg.h
include/llvm/DebugInfo/PDB/PDBSymbolTypeFunctionSig.h
include/llvm/DebugInfo/PDB/PDBSymbolTypeManaged.h
include/llvm/DebugInfo/PDB/PDBSymbolTypePointer.h
include/llvm/DebugInfo/PDB/PDBSymbolTypeTypedef.h
include/llvm/DebugInfo/PDB/PDBSymbolTypeUDT.h
include/llvm/DebugInfo/PDB/PDBSymbolTypeVTable.h
include/llvm/DebugInfo/PDB/PDBSymbolTypeVTableShape.h
include/llvm/DebugInfo/PDB/PDBSymbolUnknown.h
include/llvm/DebugInfo/PDB/PDBSymbolUsingNamespace.h
include/llvm/DebugInfo/PDB/PDBTypes.h
lib/DebugInfo/PDB/DIA/DIADataStream.cpp
lib/DebugInfo/PDB/DIA/DIAEnumDebugStreams.cpp
lib/DebugInfo/PDB/DIA/DIAEnumLineNumbers.cpp
lib/DebugInfo/PDB/DIA/DIAEnumSourceFiles.cpp
lib/DebugInfo/PDB/DIA/DIAEnumSymbols.cpp
lib/DebugInfo/PDB/DIA/DIALineNumber.cpp
lib/DebugInfo/PDB/DIA/DIARawSymbol.cpp
lib/DebugInfo/PDB/DIA/DIASession.cpp
lib/DebugInfo/PDB/DIA/DIASourceFile.cpp
lib/DebugInfo/PDB/IPDBSourceFile.cpp
lib/DebugInfo/PDB/PDB.cpp
lib/DebugInfo/PDB/PDBContext.cpp
lib/DebugInfo/PDB/PDBExtras.cpp
lib/DebugInfo/PDB/PDBInterfaceAnchors.cpp
lib/DebugInfo/PDB/PDBSymDumper.cpp
lib/DebugInfo/PDB/PDBSymbol.cpp
lib/DebugInfo/PDB/PDBSymbolAnnotation.cpp
lib/DebugInfo/PDB/PDBSymbolBlock.cpp
lib/DebugInfo/PDB/PDBSymbolCompiland.cpp
lib/DebugInfo/PDB/PDBSymbolCompilandDetails.cpp
lib/DebugInfo/PDB/PDBSymbolCompilandEnv.cpp
lib/DebugInfo/PDB/PDBSymbolCustom.cpp
lib/DebugInfo/PDB/PDBSymbolData.cpp
lib/DebugInfo/PDB/PDBSymbolExe.cpp
lib/DebugInfo/PDB/PDBSymbolFunc.cpp
lib/DebugInfo/PDB/PDBSymbolFuncDebugEnd.cpp
lib/DebugInfo/PDB/PDBSymbolFuncDebugStart.cpp
lib/DebugInfo/PDB/PDBSymbolLabel.cpp
lib/DebugInfo/PDB/PDBSymbolPublicSymbol.cpp
lib/DebugInfo/PDB/PDBSymbolThunk.cpp
lib/DebugInfo/PDB/PDBSymbolTypeArray.cpp
lib/DebugInfo/PDB/PDBSymbolTypeBaseClass.cpp
lib/DebugInfo/PDB/PDBSymbolTypeBuiltin.cpp
lib/DebugInfo/PDB/PDBSymbolTypeCustom.cpp
lib/DebugInfo/PDB/PDBSymbolTypeDimension.cpp
lib/DebugInfo/PDB/PDBSymbolTypeEnum.cpp
lib/DebugInfo/PDB/PDBSymbolTypeFriend.cpp
lib/DebugInfo/PDB/PDBSymbolTypeFunctionArg.cpp
lib/DebugInfo/PDB/PDBSymbolTypeFunctionSig.cpp
lib/DebugInfo/PDB/PDBSymbolTypeManaged.cpp
lib/DebugInfo/PDB/PDBSymbolTypePointer.cpp
lib/DebugInfo/PDB/PDBSymbolTypeTypedef.cpp
lib/DebugInfo/PDB/PDBSymbolTypeUDT.cpp
lib/DebugInfo/PDB/PDBSymbolTypeVTable.cpp
lib/DebugInfo/PDB/PDBSymbolTypeVTableShape.cpp
lib/DebugInfo/PDB/PDBSymbolUnknown.cpp
lib/DebugInfo/PDB/PDBSymbolUsingNamespace.cpp
lib/DebugInfo/Symbolize/Symbolize.cpp
tools/llvm-pdbdump/BuiltinDumper.cpp
tools/llvm-pdbdump/BuiltinDumper.h
tools/llvm-pdbdump/ClassDefinitionDumper.cpp
tools/llvm-pdbdump/ClassDefinitionDumper.h
tools/llvm-pdbdump/CompilandDumper.cpp
tools/llvm-pdbdump/CompilandDumper.h
tools/llvm-pdbdump/EnumDumper.cpp
tools/llvm-pdbdump/EnumDumper.h
tools/llvm-pdbdump/ExternalSymbolDumper.cpp
tools/llvm-pdbdump/ExternalSymbolDumper.h
tools/llvm-pdbdump/FunctionDumper.cpp
tools/llvm-pdbdump/FunctionDumper.h
tools/llvm-pdbdump/LinePrinter.cpp
tools/llvm-pdbdump/LinePrinter.h
tools/llvm-pdbdump/TypeDumper.cpp
tools/llvm-pdbdump/TypeDumper.h
tools/llvm-pdbdump/TypedefDumper.cpp
tools/llvm-pdbdump/TypedefDumper.h
tools/llvm-pdbdump/VariableDumper.cpp
tools/llvm-pdbdump/VariableDumper.h

index b5fa8c33414dbd2d0a9ad2bc3fe00ad737bef8c0..50f5c40bcac966c3445c7d4be11a23a5b4c43c33 100644 (file)
@@ -15,6 +15,7 @@
 #include <memory>
 
 namespace llvm {
+namespace pdb {
 
 template <typename ChildType>
 class ConcreteSymbolEnumerator : public IPDBEnumChildren<ChildType> {
@@ -55,5 +56,6 @@ private:
   std::unique_ptr<IPDBEnumSymbols> Enumerator;
 };
 }
+}
 
 #endif
index 7b2bc146b32defdb5d2acc20f629802ba60d1fae..930bea6060b223fb34c301a2986bf9367f105d52 100644 (file)
@@ -14,6 +14,7 @@
 #include "llvm/DebugInfo/PDB/IPDBDataStream.h"
 
 namespace llvm {
+namespace pdb {
 class DIADataStream : public IPDBDataStream {
 public:
   explicit DIADataStream(CComPtr<IDiaEnumDebugStreamData> DiaStreamData);
@@ -29,5 +30,6 @@ private:
   CComPtr<IDiaEnumDebugStreamData> StreamData;
 };
 }
+}
 
 #endif
index 375bcdd7e3bd91725dee0b4eff6ce34fcb43052e..941e16a35fac2139d598af48e90c0677b99a326e 100644 (file)
@@ -14,6 +14,7 @@
 #include "llvm/DebugInfo/PDB/IPDBEnumChildren.h"
 
 namespace llvm {
+namespace pdb {
 
 class IPDBDataStream;
 
@@ -31,5 +32,6 @@ private:
   CComPtr<IDiaEnumDebugStreams> Enumerator;
 };
 }
+}
 
 #endif
index 4cc85eda477fdb53a1475d177d50a182ce0867c0..106b84cecfffa7518a002a0cbb349b334086aef4 100644 (file)
@@ -14,7 +14,7 @@
 #include "llvm/DebugInfo/PDB/IPDBEnumChildren.h"
 
 namespace llvm {
-
+namespace pdb {
 class IPDBLineNumber;
 
 class DIAEnumLineNumbers : public IPDBEnumChildren<IPDBLineNumber> {
@@ -31,5 +31,6 @@ private:
   CComPtr<IDiaEnumLineNumbers> Enumerator;
 };
 }
+}
 
 #endif
index 88625f64e49e05e4a68d98f780a6d0f00850335f..6c00d6a5e29d36a171fee437301d0ee0748397d5 100644 (file)
@@ -14,7 +14,7 @@
 #include "llvm/DebugInfo/PDB/IPDBEnumChildren.h"
 
 namespace llvm {
-
+namespace pdb {
 class DIASession;
 
 class DIAEnumSourceFiles : public IPDBEnumChildren<IPDBSourceFile> {
@@ -33,5 +33,6 @@ private:
   CComPtr<IDiaEnumSourceFiles> Enumerator;
 };
 }
+}
 
 #endif
index fe343f778aad3573f57e7c1424e84a0078d4402f..b206ff59a6a49a6c185851bfe879599db5bdd028 100644 (file)
@@ -14,7 +14,7 @@
 #include "llvm/DebugInfo/PDB/IPDBEnumChildren.h"
 
 namespace llvm {
-
+namespace pdb {
 class DIASession;
 
 class DIAEnumSymbols : public IPDBEnumChildren<PDBSymbol> {
@@ -33,5 +33,6 @@ private:
   CComPtr<IDiaEnumSymbols> Enumerator;
 };
 }
+}
 
 #endif
index 5950a0d3835f6b128456ce1005a3d992ddd035f7..a59e3a19c8c22ee2251e5b02f4093b5ada121c1a 100644 (file)
@@ -14,6 +14,7 @@
 #include "llvm/DebugInfo/PDB/IPDBLineNumber.h"
 
 namespace llvm {
+namespace pdb {
 class DIALineNumber : public IPDBLineNumber {
 public:
   explicit DIALineNumber(CComPtr<IDiaLineNumber> DiaLineNumber);
@@ -35,5 +36,5 @@ private:
   CComPtr<IDiaLineNumber> LineNumber;
 };
 }
-
+}
 #endif
index 9308b8e82657949fc6d0f37b812524978666c0ee..63bfb3794f76aafc91897d5f7fe8237d9fad7cd4 100644 (file)
@@ -14,6 +14,7 @@
 #include "llvm/DebugInfo/PDB/IPDBRawSymbol.h"
 
 namespace llvm {
+namespace pdb {
 class DIASession;
 class DIARawSymbol : public IPDBRawSymbol {
 public:
@@ -202,5 +203,6 @@ private:
   CComPtr<IDiaSymbol> Symbol;
 };
 }
+}
 
 #endif
index 95c35dff39c53cb3633157307c6001e77097e9f1..307d8735cafcc682b204ad96bafe983803fd404a 100644 (file)
@@ -16,6 +16,7 @@
 namespace llvm {
 class StringRef;
 
+namespace pdb {
 class DIASession : public IPDBSession {
 public:
   explicit DIASession(CComPtr<IDiaSession> DiaSession);
@@ -64,5 +65,5 @@ private:
   CComPtr<IDiaSession> Session;
 };
 }
-
+}
 #endif
index 66b0c7db93f8e20f5b0b6811ae834ff8628fdf83..1088ea54981cfae65990c093fc5a55bc40c01d98 100644 (file)
@@ -14,6 +14,7 @@
 #include "llvm/DebugInfo/PDB/IPDBSourceFile.h"
 
 namespace llvm {
+namespace pdb {
 class DIASession;
 
 class DIASourceFile : public IPDBSourceFile {
@@ -35,5 +36,6 @@ private:
   CComPtr<IDiaSourceFile> SourceFile;
 };
 }
+}
 
 #endif
index 808a0f3ec3a9df111fd9fe551fb3e5a0d69c92bb..9594dc1591a76fa03c378188db772d4297b170d7 100644 (file)
@@ -15,6 +15,7 @@
 #include "llvm/ADT/SmallVector.h"
 
 namespace llvm {
+namespace pdb {
 
 /// IPDBDataStream defines an interface used to represent a stream consisting
 /// of a name and a series of records whose formats depend on the particular
@@ -33,5 +34,6 @@ public:
   virtual IPDBDataStream *clone() const = 0;
 };
 }
+}
 
 #endif
index 645ac96e23a5e6916d74a03485ddb461e2ac12a8..8e9f6f883679dc456267085bc2e977f3c3a9bda9 100644 (file)
@@ -14,6 +14,7 @@
 #include <memory>
 
 namespace llvm {
+namespace pdb {
 
 template <typename ChildType> class IPDBEnumChildren {
 public:
@@ -29,5 +30,6 @@ public:
   virtual MyType *clone() const = 0;
 };
 }
+}
 
 #endif
index 92cd58d866490da40c70e186b6af4a551d2c10fd..e20080f2fbfcd3e8d5b3c126ad783f601f7903d3 100644 (file)
@@ -13,7 +13,7 @@
 #include "PDBTypes.h"
 
 namespace llvm {
-
+namespace pdb {
 class IPDBLineNumber {
 public:
   virtual ~IPDBLineNumber();
@@ -32,5 +32,6 @@ public:
   virtual bool isStatement() const = 0;
 };
 }
+}
 
 #endif
index 139bff56fd5deed43a27eba90660eff63b37261b..b91317f7a100138fbdf18d8ad3f0d70887e6c21b 100644 (file)
 #include <memory>
 
 namespace llvm {
-
 class raw_ostream;
 
+namespace pdb {
+
 /// IPDBRawSymbol defines an interface used to represent an arbitrary symbol.
 /// It exposes a monolithic interface consisting of accessors for the union of
 /// all properties that are valid for any symbol type.  This interface is then
@@ -206,6 +207,7 @@ public:
   virtual std::string getUnused() const = 0;
 };
 
+} // namespace pdb
 } // namespace llvm
 
 #endif
index a79b8e26a4c10a1396270490abf64f9297bb54ba..3d2c37eff2e36c50573ae211ef6d31968c265824 100644 (file)
@@ -16,7 +16,7 @@
 #include <memory>
 
 namespace llvm {
-
+namespace pdb {
 class PDBSymbolCompiland;
 class PDBSymbolExe;
 
@@ -76,5 +76,6 @@ public:
   virtual std::unique_ptr<IPDBEnumDataStreams> getDebugStreams() const = 0;
 };
 }
+}
 
 #endif
index 3e4394387105ae58122c6055a2354c5f544f17fb..3676c4030b13f89385d9d4315647d0381e723f86 100644 (file)
 #include <string>
 
 namespace llvm {
-
 class raw_ostream;
 
+namespace pdb {
+
 /// IPDBSourceFile defines an interface used to represent source files whose
 /// information are stored in the PDB.
 class IPDBSourceFile {
@@ -34,5 +35,6 @@ public:
   getCompilands() const = 0;
 };
 }
+}
 
 #endif
index 5df3be85e381b50ac1ebe1deedb98f6fa68095fc..5ac450e8308e2677eb79b81c85495b4289d24851 100644 (file)
 namespace llvm {
 class StringRef;
 
+namespace pdb {
+
 PDB_ErrorCode loadDataForPDB(PDB_ReaderType Type, StringRef Path,
                              std::unique_ptr<IPDBSession> &Session);
 
 PDB_ErrorCode loadDataForEXE(PDB_ReaderType Type, StringRef Path,
                              std::unique_ptr<IPDBSession> &Session);
 }
-
+}
 #endif
index 2034e3b004b022521e69dd12dfdb532ccec2e692..836e3924843805925ccd2c8c94aed979a81967ed 100644 (file)
@@ -17,44 +17,46 @@ namespace llvm {
 
 namespace object {
 class COFFObjectFile;
-}
-
-/// PDBContext
-/// This data structure is the top level entity that deals with PDB debug
-/// information parsing.  This data structure exists only when there is a
-/// need for a transparent interface to different debug information formats
-/// (e.g. PDB and DWARF).  More control and power over the debug information
-/// access can be had by using the PDB interfaces directly.
-class PDBContext : public DIContext {
-
-  PDBContext(PDBContext &) = delete;
-  PDBContext &operator=(PDBContext &) = delete;
-
-public:
-  PDBContext(const object::COFFObjectFile &Object,
-             std::unique_ptr<IPDBSession> PDBSession);
-
-  static bool classof(const DIContext *DICtx) {
-    return DICtx->getKind() == CK_PDB;
   }
 
-  void dump(raw_ostream &OS, DIDumpType DumpType = DIDT_All,
-            bool DumpEH = false) override;
-
-  DILineInfo getLineInfoForAddress(
-      uint64_t Address,
-      DILineInfoSpecifier Specifier = DILineInfoSpecifier()) override;
-  DILineInfoTable getLineInfoForAddressRange(
-      uint64_t Address, uint64_t Size,
-      DILineInfoSpecifier Specifier = DILineInfoSpecifier()) override;
-  DIInliningInfo getInliningInfoForAddress(
-      uint64_t Address,
-      DILineInfoSpecifier Specifier = DILineInfoSpecifier()) override;
-
-private:
-  std::string getFunctionName(uint64_t Address, DINameKind NameKind) const;
-  std::unique_ptr<IPDBSession> Session;
-};
+  namespace pdb {
+  /// PDBContext
+  /// This data structure is the top level entity that deals with PDB debug
+  /// information parsing.  This data structure exists only when there is a
+  /// need for a transparent interface to different debug information formats
+  /// (e.g. PDB and DWARF).  More control and power over the debug information
+  /// access can be had by using the PDB interfaces directly.
+  class PDBContext : public DIContext {
+
+    PDBContext(PDBContext &) = delete;
+    PDBContext &operator=(PDBContext &) = delete;
+
+  public:
+    PDBContext(const object::COFFObjectFile &Object,
+               std::unique_ptr<IPDBSession> PDBSession);
+
+    static bool classof(const DIContext *DICtx) {
+      return DICtx->getKind() == CK_PDB;
+    }
+
+    void dump(raw_ostream &OS, DIDumpType DumpType = DIDT_All,
+              bool DumpEH = false) override;
+
+    DILineInfo getLineInfoForAddress(
+        uint64_t Address,
+        DILineInfoSpecifier Specifier = DILineInfoSpecifier()) override;
+    DILineInfoTable getLineInfoForAddressRange(
+        uint64_t Address, uint64_t Size,
+        DILineInfoSpecifier Specifier = DILineInfoSpecifier()) override;
+    DIInliningInfo getInliningInfoForAddress(
+        uint64_t Address,
+        DILineInfoSpecifier Specifier = DILineInfoSpecifier()) override;
+
+  private:
+    std::string getFunctionName(uint64_t Address, DINameKind NameKind) const;
+    std::unique_ptr<IPDBSession> Session;
+  };
+  }
 }
 
 #endif
index 75706491c2d06b6a4d198dfe23eefd3431fdc9fc..d9c8a70319220ee63a9cc38965a7fb1331dd2104 100644 (file)
@@ -15,6 +15,8 @@
 #include <unordered_map>
 
 namespace llvm {
+
+namespace pdb {
 typedef std::unordered_map<PDB_SymType, int> TagStats;
 
 raw_ostream &operator<<(raw_ostream &OS, const PDB_VariantType &Value);
@@ -35,5 +37,6 @@ raw_ostream &operator<<(raw_ostream &OS, const Variant &Value);
 raw_ostream &operator<<(raw_ostream &OS, const VersionInfo &Version);
 raw_ostream &operator<<(raw_ostream &OS, const TagStats &Stats);
 }
+}
 
 #endif
index 65110f39366f98a4009b2e1da51e110d0e145c05..095c33cfe8b5892e7b9b1fdbfd6b44a80f14926d 100644 (file)
@@ -15,6 +15,7 @@
 namespace llvm {
 
 class raw_ostream;
+namespace pdb {
 
 class PDBSymDumper {
 public:
@@ -57,5 +58,6 @@ private:
   bool RequireImpl;
 };
 }
+}
 
 #endif
index 099745adf72fc83ebe621585283e4e43312164f9..bf51188065407cb0614b63df57c64ceb446d6f65 100644 (file)
 namespace llvm {
 
 class StringRef;
-class IPDBRawSymbol;
 class raw_ostream;
 
+namespace pdb {
+class IPDBRawSymbol;
+
 #define DECLARE_PDB_SYMBOL_CONCRETE_TYPE(TagValue)                             \
   static const PDB_SymType Tag = TagValue;                                     \
   static bool classof(const PDBSymbol *S) { return S->getSymTag() == Tag; }
@@ -40,7 +42,8 @@ class raw_ostream;
 /// https://msdn.microsoft.com/en-us/library/370hs6k4.aspx
 class PDBSymbol {
 protected:
-  PDBSymbol(const IPDBSession &PDBSession, std::unique_ptr<IPDBRawSymbol> Symbol);
+  PDBSymbol(const IPDBSession &PDBSession,
+            std::unique_ptr<IPDBRawSymbol> Symbol);
 
 public:
   static std::unique_ptr<PDBSymbol>
@@ -93,5 +96,6 @@ protected:
 };
 
 } // namespace llvm
+}
 
 #endif
index 2086634f4d6e18a10f5a8b6ffbe01fd61074a8b3..3169146e5b126ae95215d4a3f6fa75af76e97c44 100644 (file)
@@ -15,6 +15,7 @@
 namespace llvm {
 
 class raw_ostream;
+namespace pdb {
 
 class PDBSymbolAnnotation : public PDBSymbol {
 public:
@@ -33,5 +34,6 @@ public:
   FORWARD_SYMBOL_METHOD(getVirtualAddress)
 };
 }
+}
 
 #endif // LLVM_DEBUGINFO_PDB_PDBSYMBOLANNOTATION_H
index dc8aa52d9f5713930bffba98c871d6857b637cd3..d0ff62ca7c3f50a20f5082a32da84c17bb8d62d3 100644 (file)
@@ -16,6 +16,8 @@ namespace llvm {
 
 class raw_ostream;
 
+namespace pdb {
+
 class PDBSymbolBlock : public PDBSymbol {
 public:
   PDBSymbolBlock(const IPDBSession &PDBSession,
@@ -35,5 +37,6 @@ public:
   FORWARD_SYMBOL_METHOD(getVirtualAddress)
 };
 }
+}
 
 #endif // LLVM_DEBUGINFO_PDB_PDBSYMBOLBLOCK_H
index ade807f64630665ecd7589cecbe8f35f0f1a1973..f1983b3f7bf5b689712acf1e9aefa0a95c46ceda 100644 (file)
@@ -17,6 +17,8 @@ namespace llvm {
 
 class raw_ostream;
 
+namespace pdb {
+
 class PDBSymbolCompiland : public PDBSymbol {
 public:
   PDBSymbolCompiland(const IPDBSession &PDBSession,
@@ -34,5 +36,6 @@ public:
   std::string getSourceFileName() const;
 };
 }
+}
 
 #endif // LLVM_DEBUGINFO_PDB_PDBSYMBOLCOMPILAND_H
index 59d7eb310e1615edb32b59d3e325eaf524b0e800..bb4a78f68e2f7de925ca18cf6498f7195caeafc0 100644 (file)
@@ -16,6 +16,7 @@
 namespace llvm {
 
 class raw_ostream;
+namespace pdb {
 
 class PDBSymbolCompilandDetails : public PDBSymbol {
 public:
@@ -51,5 +52,6 @@ public:
 };
 
 } // namespace llvm
+}
 
 #endif // LLVM_DEBUGINFO_PDB_PDBFUNCTION_H
index 4890f75eea30759851b5bbe643e76ed0f12fce1b..a71a0ba2df589f19006563d71aebb579940f7e20 100644 (file)
@@ -16,7 +16,7 @@
 namespace llvm {
 
 class raw_ostream;
-
+namespace pdb {
 class PDBSymbolCompilandEnv : public PDBSymbol {
 public:
   PDBSymbolCompilandEnv(const IPDBSession &PDBSession,
@@ -32,5 +32,6 @@ public:
 };
 
 } // namespace llvm
+}
 
 #endif // LLVM_DEBUGINFO_PDB_PDBSYMBOLCOMPILANDENV_H
index 5a7b8096d9c6501f1d1066bd2b64ff54b2c65f29..54f089404262638e6854d1e8938fc643567d0c14 100644 (file)
@@ -18,6 +18,7 @@ namespace llvm {
 
 class raw_ostream;
 
+namespace pdb {
 /// PDBSymbolCustom represents symbols that are compiler-specific and do not
 /// fit anywhere else in the lexical hierarchy.
 /// https://msdn.microsoft.com/en-us/library/d88sf09h.aspx
@@ -34,5 +35,6 @@ public:
 };
 
 } // namespace llvm
+}
 
 #endif // LLVM_DEBUGINFO_PDB_PDBSYMBOLCUSTOM_H
index 6c42bcbe2b35ed8d13a7296806cbd043df0b1d38..36f32ab51c1108b675de3c6625677b3907bcf782 100644 (file)
@@ -17,6 +17,8 @@ namespace llvm {
 
 class raw_ostream;
 
+namespace pdb {
+
 class PDBSymbolData : public PDBSymbol {
 public:
   PDBSymbolData(const IPDBSession &PDBSession,
@@ -56,5 +58,6 @@ public:
 };
 
 } // namespace llvm
+}
 
 #endif // LLVM_DEBUGINFO_PDB_PDBSYMBOLDATA_H
index f075524b4438ab656a37c7ec844db1dcdd293379..5b3f50d153eb6078007570b1f497430c33403466 100644 (file)
@@ -17,6 +17,8 @@ namespace llvm {
 
 class raw_ostream;
 
+namespace pdb {
+
 class PDBSymbolExe : public PDBSymbol {
 public:
   PDBSymbolExe(const IPDBSession &PDBSession,
@@ -40,5 +42,6 @@ private:
                     int Indent) const;
 };
 } // namespace llvm
+}
 
 #endif // LLVM_DEBUGINFO_PDB_PDBSYMBOLEXE_H
index 490a9754707db3855aa0759f2c989f4dcb1724d1..7170bcbe846c63a3a849a85106860dfc3b7f6c83 100644 (file)
@@ -17,6 +17,8 @@ namespace llvm {
 
 class raw_ostream;
 
+namespace pdb {
+
 class PDBSymbolFunc : public PDBSymbol {
 public:
   PDBSymbolFunc(const IPDBSession &PDBSession,
@@ -75,5 +77,6 @@ public:
 };
 
 } // namespace llvm
+}
 
 #endif // LLVM_DEBUGINFO_PDB_PDBSYMBOLFUNC_H
index 7e6c2d634708894f358a8bd7b5eef9c860ff0b3a..464389503bef26e74de6709d38e14f321ecdb21c 100644 (file)
@@ -17,6 +17,8 @@ namespace llvm {
 
 class raw_ostream;
 
+namespace pdb {
+
 class PDBSymbolFuncDebugEnd : public PDBSymbol {
 public:
   PDBSymbolFuncDebugEnd(const IPDBSession &PDBSession,
@@ -44,5 +46,6 @@ public:
 };
 
 } // namespace llvm
+}
 
 #endif // LLVM_DEBUGINFO_PDB_PDBSYMBOLFUNCDEBUGEND_H
index c1b1b59c211f556cc30cdf860a3b24b23041eeaa..c2e3dd39be6cf21c2764cf1a3573d10d28889cba 100644 (file)
@@ -16,6 +16,7 @@
 namespace llvm {
 
 class raw_ostream;
+namespace pdb {
 
 class PDBSymbolFuncDebugStart : public PDBSymbol {
 public:
@@ -44,5 +45,6 @@ public:
 };
 
 } // namespace llvm
+}
 
 #endif // LLVM_DEBUGINFO_PDB_PDBSYMBOLFUNCDEBUGSTART_H
index 453bcdc969f1cd71e20e364b7a9075d58a345124..3aeae10b47bcd44060183df972067e41fd907d2d 100644 (file)
@@ -16,6 +16,7 @@
 namespace llvm {
 
 class raw_ostream;
+namespace pdb {
 
 class PDBSymbolLabel : public PDBSymbol {
 public:
@@ -44,5 +45,6 @@ public:
 };
 
 } // namespace llvm
+}
 
 #endif // LLVM_DEBUGINFO_PDB_PDBSYMBOLLABEL_H
index 4a2efa282eb77e815b07568ca418b4fdcd279f9d..be0734445973ff2fca92a9a66eceeb2dbc62046a 100644 (file)
@@ -16,6 +16,7 @@
 namespace llvm {
 
 class raw_ostream;
+namespace pdb {
 
 class PDBSymbolPublicSymbol : public PDBSymbol {
 public:
@@ -42,5 +43,6 @@ public:
 };
 
 } // namespace llvm
+}
 
 #endif // LLVM_DEBUGINFO_PDB_PDBSYMBOLPUBLICSYMBOL_H
index fe5fb4ac06a1bbc7c8d9f1e1aa29256f4d4373a1..63f7a09fc881d5213dc17e9b0c61977795458320 100644 (file)
@@ -16,6 +16,7 @@
 namespace llvm {
 
 class raw_ostream;
+namespace pdb {
 
 class PDBSymbolThunk : public PDBSymbol {
 public:
@@ -51,5 +52,6 @@ public:
   FORWARD_SYMBOL_METHOD(isVolatileType)
 };
 } // namespace llvm
+}
 
 #endif // LLVM_DEBUGINFO_PDB_PDBSYMBOLTHUNK_H
index 42aec6ae5951bc5fae8c2db45eff821a33de7995..57db03661fb7ebc0ab964e0c20e00234cbc0c827 100644 (file)
@@ -16,6 +16,7 @@
 namespace llvm {
 
 class raw_ostream;
+namespace pdb {
 
 class PDBSymbolTypeArray : public PDBSymbol {
 public:
@@ -40,5 +41,6 @@ public:
 };
 
 } // namespace llvm
+}
 
 #endif // LLVM_DEBUGINFO_PDB_PDBSYMBOLTYPEARRAY_H
index 1563cc78977d718b7720f64a9c10ad54a61a4eb6..aaa3ab7988d71a6c20902dd3c845122ce6738c00 100644 (file)
@@ -16,6 +16,7 @@
 namespace llvm {
 
 class raw_ostream;
+namespace pdb {
 
 class PDBSymbolTypeBaseClass : public PDBSymbol {
 public:
@@ -55,5 +56,6 @@ public:
 };
 
 } // namespace llvm
+}
 
 #endif // LLVM_DEBUGINFO_PDB_PDBSYMBOLTYPEBASECLASS_H
index 5986a91531182e15e3e54fb03e9f3144bc3ea21c..c8f59f1f140a1a5420278d1ba7b778953cad1ca0 100644 (file)
@@ -16,6 +16,7 @@
 namespace llvm {
 
 class raw_ostream;
+namespace pdb {
 
 class PDBSymbolTypeBuiltin : public PDBSymbol {
 public:
@@ -35,5 +36,6 @@ public:
 };
 
 } // namespace llvm
+}
 
 #endif // LLVM_DEBUGINFO_PDB_PDBSYMBOLTYPEBUILTIN_H
index 7dca811201ebd580717c4a05201c56bfb49dd4e7..199b3f8b304e7dbc28dce0a9827d221c4c287957 100644 (file)
@@ -16,6 +16,7 @@
 namespace llvm {
 
 class raw_ostream;
+namespace pdb {
 
 class PDBSymbolTypeCustom : public PDBSymbol {
 public:
@@ -31,5 +32,6 @@ public:
 };
 
 } // namespace llvm
+}
 
 #endif // LLVM_DEBUGINFO_PDB_PDBSYMBOLTYPECUSTOM_H
index 3c64a229c5977130e3cc76cd6f948f391badfd48..e635eb5bbf6f02642e8a34f381afee651cb8caab 100644 (file)
@@ -16,6 +16,7 @@
 namespace llvm {
 
 class raw_ostream;
+namespace pdb {
 
 class PDBSymbolTypeDimension : public PDBSymbol {
 public:
@@ -31,5 +32,6 @@ public:
 };
 
 } // namespace llvm
+}
 
 #endif // LLVM_DEBUGINFO_PDB_PDBSYMBOLTYPEDIMENSION_H
index 0bff97fa634e447e5d88e0dfa59fbcae07f4afc7..ade2887bac14be53059487f70e59886b19f0c088 100644 (file)
@@ -16,6 +16,7 @@
 namespace llvm {
 
 class raw_ostream;
+namespace pdb {
 
 class PDBSymbolTypeEnum : public PDBSymbol {
 public:
@@ -50,5 +51,6 @@ public:
 };
 
 } // namespace llvm
+}
 
 #endif // LLVM_DEBUGINFO_PDB_PDBSYMBOLTYPEENUM_H
index a23bb602cc5677c03773c89e57ba9bc18a4ba5c6..196d149ed2a2027acd3a8fc75e8eef17e3eb6efd 100644 (file)
@@ -16,6 +16,7 @@
 namespace llvm {
 
 class raw_ostream;
+namespace pdb {
 
 class PDBSymbolTypeFriend : public PDBSymbol {
 public:
@@ -32,5 +33,6 @@ public:
 };
 
 } // namespace llvm
+}
 
 #endif // LLVM_DEBUGINFO_PDB_PDBSYMBOLTYPEFRIEND_H
index ea451ae76ce440a12a0c0b1bcc80fe48e0f1d7f9..5561341d7e777d064723f1ba59cdaeb142b76db0 100644 (file)
@@ -16,6 +16,7 @@
 namespace llvm {
 
 class raw_ostream;
+namespace pdb {
 
 class PDBSymbolTypeFunctionArg : public PDBSymbol {
 public:
@@ -32,5 +33,6 @@ public:
 };
 
 } // namespace llvm
+}
 
 #endif // LLVM_DEBUGINFO_PDB_PDBSYMBOLTYPEFUNCTIONARG_H
index 0aba6d46766273749b34b79b9f3b70c4da9a57d1..516011ff8b3dc1f3daa4de1a77dbbc36f3cfaab1 100644 (file)
@@ -16,6 +16,7 @@
 namespace llvm {
 
 class raw_ostream;
+namespace pdb {
 
 class PDBSymbolTypeFunctionSig : public PDBSymbol {
 public:
@@ -45,5 +46,6 @@ public:
 };
 
 } // namespace llvm
+}
 
 #endif // LLVM_DEBUGINFO_PDB_PDBSYMBOLTYPEFUNCTIONSIG_H
index fdc951d9acc2f71960861ab2f345630670f9fe3e..31cf5363dde1d9658419f060d4ddaadd792dcc17 100644 (file)
@@ -16,6 +16,7 @@
 namespace llvm {
 
 class raw_ostream;
+namespace pdb {
 
 class PDBSymbolTypeManaged : public PDBSymbol {
 public:
@@ -30,5 +31,6 @@ public:
 };
 
 } // namespace llvm
+}
 
 #endif // LLVM_DEBUGINFO_PDB_PDBSYMBOLTYPEMANAGED_H
index 916beebcb512bc8e35bb59e6c142aad022affeaa..7a57272adb791e1420ba83e9d1f0e5a70712062d 100644 (file)
@@ -16,6 +16,7 @@
 namespace llvm {
 
 class raw_ostream;
+namespace pdb {
 
 class PDBSymbolTypePointer : public PDBSymbol {
 public:
@@ -38,5 +39,6 @@ public:
 };
 
 } // namespace llvm
+}
 
 #endif // LLVM_DEBUGINFO_PDB_PDBSYMBOLTYPEPOINTER_H
index 1c535aa4251087f4ed2fccd0df810695b1764a24..5ed4f8d21d9029c2cc797d0361084aa44839e5d0 100644 (file)
@@ -16,6 +16,7 @@
 namespace llvm {
 
 class raw_ostream;
+namespace pdb {
 
 class PDBSymbolTypeTypedef : public PDBSymbol {
 public:
@@ -49,5 +50,6 @@ public:
 };
 
 } // namespace llvm
+}
 
 #endif // LLVM_DEBUGINFO_PDB_PDBSYMBOLTYPETYPEDEF_H
index 396261ba23ceef57fabbaa5efda80650dd28a42e..1874dfef34f7fcd1bfd91f5d21cca5f984251716 100644 (file)
@@ -17,6 +17,7 @@ namespace llvm {
 
 class raw_ostream;
 
+namespace pdb {
 class PDBSymbolTypeUDT : public PDBSymbol {
 public:
   PDBSymbolTypeUDT(const IPDBSession &PDBSession,
@@ -45,7 +46,7 @@ public:
   FORWARD_SYMBOL_METHOD(getVirtualTableShapeId)
   FORWARD_SYMBOL_METHOD(isVolatileType)
 };
-
+}
 } // namespace llvm
 
 #endif // LLVM_DEBUGINFO_PDB_PDBSYMBOLTYPEUDT_H
index a529ee985488cb6cf5dd8c96b2b7fe348ef39fbc..baf7ab79d60e6cbd19534048186143747499e913 100644 (file)
@@ -16,6 +16,7 @@
 namespace llvm {
 
 class raw_ostream;
+namespace pdb {
 
 class PDBSymbolTypeVTable : public PDBSymbol {
 public:
@@ -35,5 +36,6 @@ public:
 };
 
 } // namespace llvm
+}
 
 #endif // LLVM_DEBUGINFO_PDB_PDBSYMBOLTYPEVTABLE_H
index a1699498c42244ba120cc93739d18572cd180342..431fc1ac8625711d29c06a20b92c7ee5efde2979 100644 (file)
@@ -16,6 +16,7 @@
 namespace llvm {
 
 class raw_ostream;
+namespace pdb {
 
 class PDBSymbolTypeVTableShape : public PDBSymbol {
 public:
@@ -34,5 +35,6 @@ public:
 };
 
 } // namespace llvm
+}
 
 #endif // LLVM_DEBUGINFO_PDB_PDBSYMBOLTYPEVTABLESHAPE_H
index 94bd2c14079f8edb9ac025e140aab8bdc5ed037e..de43e47badbdd4b94137c757444d1f00f024ed19 100644 (file)
@@ -15,6 +15,7 @@
 namespace llvm {
 
 class raw_ostream;
+namespace pdb {
 
 class PDBSymbolUnknown : public PDBSymbol {
 public:
@@ -30,5 +31,6 @@ public:
 };
 
 } // namespace llvm
+}
 
 #endif // LLVM_DEBUGINFO_PDB_PDBSYMBOLUNKNOWN_H
index 7b17b5bb902bce730714545bd4443dad226a89a6..a273fe159c12680e73b8f73e55bed2398858b05f 100644 (file)
@@ -16,6 +16,7 @@
 namespace llvm {
 
 class raw_ostream;
+namespace pdb {
 
 class PDBSymbolUsingNamespace : public PDBSymbol {
 public:
@@ -31,5 +32,6 @@ public:
 };
 
 } // namespace llvm
+}
 
 #endif // LLVM_DEBUGINFO_PDB_PDBSYMBOLUSINGNAMESPACE_H
index 5a8cd5170c56517bd85cbc96160a7e33bec21c83..d18224aaad86f337abc7805cd4b3a168406a936c 100644 (file)
@@ -17,6 +17,7 @@
 #include <cstring>
 
 namespace llvm {
+namespace pdb {
 
 class PDBSymDumper;
 class PDBSymbol;
@@ -355,9 +356,7 @@ enum PDB_VariantType {
 };
 
 struct Variant {
-  Variant()
-    : Type(PDB_VariantType::Empty) {
-  }
+  Variant() : Type(PDB_VariantType::Empty) {}
 
   Variant(const Variant &Other) : Type(PDB_VariantType::Empty) {
     *this = Other;
@@ -429,10 +428,11 @@ struct Variant {
 };
 
 } // end namespace llvm
+}
 
 namespace std {
-template <> struct hash<llvm::PDB_SymType> {
-  typedef llvm::PDB_SymType argument_type;
+template <> struct hash<llvm::pdb::PDB_SymType> {
+  typedef llvm::pdb::PDB_SymType argument_type;
   typedef std::size_t result_type;
 
   result_type operator()(const argument_type &Arg) const {
index 5c545c7eb1014b6d24852f6566ce3bc7c1361e16..7eabed8cad48c0e92593a12ab1bc14955e7350fd 100644 (file)
@@ -12,6 +12,7 @@
 #include "llvm/Support/ConvertUTF.h"
 
 using namespace llvm;
+using namespace llvm::pdb;
 
 DIADataStream::DIADataStream(CComPtr<IDiaEnumDebugStreamData> DiaStreamData)
     : StreamData(DiaStreamData) {}
index 23c6489c7e18cc924c10597af89411a48a78e797..cae817c1b367dc337081c03a72701fa579526f6f 100644 (file)
@@ -12,6 +12,7 @@
 #include "llvm/DebugInfo/PDB/DIA/DIAEnumDebugStreams.h"
 
 using namespace llvm;
+using namespace llvm::pdb;
 
 DIAEnumDebugStreams::DIAEnumDebugStreams(
     CComPtr<IDiaEnumDebugStreams> DiaEnumerator)
index 32a9af214dc08e112b04b9712326551361b0dab2..4741d9c9a849917eb93cfe527f8775d0bb058727 100644 (file)
@@ -12,6 +12,7 @@
 #include "llvm/DebugInfo/PDB/DIA/DIALineNumber.h"
 
 using namespace llvm;
+using namespace llvm::pdb;
 
 DIAEnumLineNumbers::DIAEnumLineNumbers(
     CComPtr<IDiaEnumLineNumbers> DiaEnumerator)
index 1a946100fef260edb405fe20cdd19d457c352fcb..ccf8c4e622ccadffb3ed453b63300282434ae0fa 100644 (file)
@@ -12,6 +12,7 @@
 #include "llvm/DebugInfo/PDB/DIA/DIASourceFile.h"
 
 using namespace llvm;
+using namespace llvm::pdb;
 
 DIAEnumSourceFiles::DIAEnumSourceFiles(
     const DIASession &PDBSession, CComPtr<IDiaEnumSourceFiles> DiaEnumerator)
index 6754d9a97d709c9c12ce71e120940eb52cf0a298..3c211b569044957c7e765d9a2a931a5c0939a3ce 100644 (file)
@@ -13,6 +13,7 @@
 #include "llvm/DebugInfo/PDB/DIA/DIASession.h"
 
 using namespace llvm;
+using namespace llvm::pdb;
 
 DIAEnumSymbols::DIAEnumSymbols(const DIASession &PDBSession,
                                CComPtr<IDiaEnumSymbols> DiaEnumerator)
index c5577f15eb8e3dde4b63df86c7e30bbfe7f3af73..b19be6b595abe0933ead2b18ef80e98831054fcf 100644 (file)
@@ -10,6 +10,7 @@
 #include "llvm/DebugInfo/PDB/DIA/DIALineNumber.h"
 
 using namespace llvm;
+using namespace llvm::pdb;
 
 DIALineNumber::DIALineNumber(CComPtr<IDiaLineNumber> DiaLineNumber)
     : LineNumber(DiaLineNumber) {}
index 0651d7364cca11e2e8e538c64ddf3910a6110c5b..1bc81d82c9571d142b3adb7c32e17932e6d1d25d 100644 (file)
@@ -17,6 +17,7 @@
 #include "llvm/Support/raw_ostream.h"
 
 using namespace llvm;
+using namespace llvm::pdb;
 
 namespace {
 Variant VariantFromVARIANT(const VARIANT &V) {
index 89a9f5109802823c5535fb944a4e246ff4a8b12b..83aebfede0b0c3105c40b7ff0390cce87df65c9d 100644 (file)
@@ -21,6 +21,7 @@
 #include <diacreate.h>
 
 using namespace llvm;
+using namespace llvm::pdb;
 
 namespace {
 
index 762dda6caf544b234b69fddcf63874094b5a18bd..8605f55b402c32de149e2e3e57d6f90217e889e9 100644 (file)
@@ -16,6 +16,7 @@
 #include "llvm/Support/ConvertUTF.h"
 
 using namespace llvm;
+using namespace llvm::pdb;
 
 DIASourceFile::DIASourceFile(const DIASession &PDBSession,
                              CComPtr<IDiaSourceFile> DiaSourceFile)
index 3abe59dba623df0a16e39776d5ae8e6216270c7d..46b422f5a76a056929d65bb48f7cb516a3f341fa 100644 (file)
@@ -14,6 +14,7 @@
 #include "llvm/Support/raw_ostream.h"
 
 using namespace llvm;
+using namespace llvm::pdb;
 
 IPDBSourceFile::~IPDBSourceFile() {}
 
index 39b4b9480a8da01f8d34ad917c242610f03c90bb..1c65e85345f6b158ace4eda505fe1ba386735fc9 100644 (file)
 #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);
index 73c56162430377f296265d6e51b60e50917a1b41..773230263da86c015c3a68fba704acd7d8e86b15 100644 (file)
@@ -19,6 +19,7 @@
 
 using namespace llvm;
 using namespace llvm::object;
+using namespace llvm::pdb;
 
 PDBContext::PDBContext(const COFFObjectFile &Object,
                        std::unique_ptr<IPDBSession> PDBSession)
index e044d03fab9d5b7377bbb3ab83964cc4bbfaf543..ebad9a072a52ee709ce740de95409c39c9748e59 100644 (file)
@@ -12,6 +12,7 @@
 #include "llvm/ADT/ArrayRef.h"
 
 using namespace llvm;
+using namespace llvm::pdb;
 
 #define CASE_OUTPUT_ENUM_CLASS_STR(Class, Value, Str, Stream)                  \
   case Class::Value:                                                           \
@@ -21,7 +22,8 @@ using namespace llvm;
 #define CASE_OUTPUT_ENUM_CLASS_NAME(Class, Value, Stream)                      \
   CASE_OUTPUT_ENUM_CLASS_STR(Class, Value, #Value, Stream)
 
-raw_ostream &llvm::operator<<(raw_ostream &OS, const PDB_VariantType &Type) {
+raw_ostream &llvm::pdb::operator<<(raw_ostream &OS,
+                                   const PDB_VariantType &Type) {
   switch (Type) {
     CASE_OUTPUT_ENUM_CLASS_NAME(PDB_VariantType, Bool, OS)
     CASE_OUTPUT_ENUM_CLASS_NAME(PDB_VariantType, Single, OS)
@@ -40,7 +42,8 @@ raw_ostream &llvm::operator<<(raw_ostream &OS, const PDB_VariantType &Type) {
   return OS;
 }
 
-raw_ostream &llvm::operator<<(raw_ostream &OS, const PDB_CallingConv &Conv) {
+raw_ostream &llvm::pdb::operator<<(raw_ostream &OS,
+                                   const PDB_CallingConv &Conv) {
   OS << "__";
   switch (Conv) {
     CASE_OUTPUT_ENUM_CLASS_STR(PDB_CallingConv, NearC      , "cdecl", OS)
@@ -71,7 +74,7 @@ raw_ostream &llvm::operator<<(raw_ostream &OS, const PDB_CallingConv &Conv) {
   return OS;
 }
 
-raw_ostream &llvm::operator<<(raw_ostream &OS, const PDB_DataKind &Data) {
+raw_ostream &llvm::pdb::operator<<(raw_ostream &OS, const PDB_DataKind &Data) {
   switch (Data) {
     CASE_OUTPUT_ENUM_CLASS_STR(PDB_DataKind, Unknown, "unknown", OS)
     CASE_OUTPUT_ENUM_CLASS_STR(PDB_DataKind, Local, "local", OS)
@@ -87,7 +90,7 @@ raw_ostream &llvm::operator<<(raw_ostream &OS, const PDB_DataKind &Data) {
   return OS;
 }
 
-raw_ostream &llvm::operator<<(raw_ostream &OS, const PDB_RegisterId &Reg) {
+raw_ostream &llvm::pdb::operator<<(raw_ostream &OS, const PDB_RegisterId &Reg) {
   switch (Reg) {
     CASE_OUTPUT_ENUM_CLASS_NAME(PDB_RegisterId, AL, OS)
     CASE_OUTPUT_ENUM_CLASS_NAME(PDB_RegisterId, CL, OS)
@@ -142,7 +145,7 @@ raw_ostream &llvm::operator<<(raw_ostream &OS, const PDB_RegisterId &Reg) {
   return OS;
 }
 
-raw_ostream &llvm::operator<<(raw_ostream &OS, const PDB_LocType &Loc) {
+raw_ostream &llvm::pdb::operator<<(raw_ostream &OS, const PDB_LocType &Loc) {
   switch (Loc) {
     CASE_OUTPUT_ENUM_CLASS_STR(PDB_LocType, Static, "static", OS)
     CASE_OUTPUT_ENUM_CLASS_STR(PDB_LocType, TLS, "tls", OS)
@@ -160,7 +163,8 @@ raw_ostream &llvm::operator<<(raw_ostream &OS, const PDB_LocType &Loc) {
   return OS;
 }
 
-raw_ostream &llvm::operator<<(raw_ostream &OS, const PDB_ThunkOrdinal &Thunk) {
+raw_ostream &llvm::pdb::operator<<(raw_ostream &OS,
+                                   const PDB_ThunkOrdinal &Thunk) {
   switch (Thunk) {
     CASE_OUTPUT_ENUM_CLASS_NAME(PDB_ThunkOrdinal, BranchIsland, OS)
     CASE_OUTPUT_ENUM_CLASS_NAME(PDB_ThunkOrdinal, Pcode, OS)
@@ -173,7 +177,8 @@ raw_ostream &llvm::operator<<(raw_ostream &OS, const PDB_ThunkOrdinal &Thunk) {
   return OS;
 }
 
-raw_ostream &llvm::operator<<(raw_ostream &OS, const PDB_Checksum &Checksum) {
+raw_ostream &llvm::pdb::operator<<(raw_ostream &OS,
+                                   const PDB_Checksum &Checksum) {
   switch (Checksum) {
     CASE_OUTPUT_ENUM_CLASS_NAME(PDB_Checksum, None, OS)
     CASE_OUTPUT_ENUM_CLASS_NAME(PDB_Checksum, MD5, OS)
@@ -182,7 +187,7 @@ raw_ostream &llvm::operator<<(raw_ostream &OS, const PDB_Checksum &Checksum) {
   return OS;
 }
 
-raw_ostream &llvm::operator<<(raw_ostream &OS, const PDB_Lang &Lang) {
+raw_ostream &llvm::pdb::operator<<(raw_ostream &OS, const PDB_Lang &Lang) {
   switch (Lang) {
     CASE_OUTPUT_ENUM_CLASS_NAME(PDB_Lang, C, OS)
     CASE_OUTPUT_ENUM_CLASS_STR(PDB_Lang, Cpp, "C++", OS)
@@ -205,7 +210,7 @@ raw_ostream &llvm::operator<<(raw_ostream &OS, const PDB_Lang &Lang) {
   return OS;
 }
 
-raw_ostream &llvm::operator<<(raw_ostream &OS, const PDB_SymType &Tag) {
+raw_ostream &llvm::pdb::operator<<(raw_ostream &OS, const PDB_SymType &Tag) {
   switch (Tag) {
     CASE_OUTPUT_ENUM_CLASS_NAME(PDB_SymType, Exe, OS)
     CASE_OUTPUT_ENUM_CLASS_NAME(PDB_SymType, Compiland, OS)
@@ -243,7 +248,8 @@ raw_ostream &llvm::operator<<(raw_ostream &OS, const PDB_SymType &Tag) {
   return OS;
 }
 
-raw_ostream &llvm::operator<<(raw_ostream &OS, const PDB_MemberAccess &Access) {
+raw_ostream &llvm::pdb::operator<<(raw_ostream &OS,
+                                   const PDB_MemberAccess &Access) {
   switch (Access) {
     CASE_OUTPUT_ENUM_CLASS_STR(PDB_MemberAccess, Public, "public", OS)
     CASE_OUTPUT_ENUM_CLASS_STR(PDB_MemberAccess, Protected, "protected", OS)
@@ -252,7 +258,7 @@ raw_ostream &llvm::operator<<(raw_ostream &OS, const PDB_MemberAccess &Access) {
   return OS;
 }
 
-raw_ostream &llvm::operator<<(raw_ostream &OS, const PDB_UdtType &Type) {
+raw_ostream &llvm::pdb::operator<<(raw_ostream &OS, const PDB_UdtType &Type) {
   switch (Type) {
     CASE_OUTPUT_ENUM_CLASS_STR(PDB_UdtType, Class, "class", OS)
     CASE_OUTPUT_ENUM_CLASS_STR(PDB_UdtType, Struct, "struct", OS)
@@ -262,7 +268,7 @@ raw_ostream &llvm::operator<<(raw_ostream &OS, const PDB_UdtType &Type) {
   return OS;
 }
 
-raw_ostream &llvm::operator<<(raw_ostream &OS, const PDB_UniqueId &Id) {
+raw_ostream &llvm::pdb::operator<<(raw_ostream &OS, const PDB_UniqueId &Id) {
   static const char *Lookup = "0123456789ABCDEF";
 
   static_assert(sizeof(PDB_UniqueId) == 16, "Expected 16-byte GUID");
@@ -281,7 +287,8 @@ raw_ostream &llvm::operator<<(raw_ostream &OS, const PDB_UniqueId &Id) {
   return OS;
 }
 
-raw_ostream &llvm::operator<<(raw_ostream &OS, const PDB_Machine &Machine) {
+raw_ostream &llvm::pdb::operator<<(raw_ostream &OS,
+                                   const PDB_Machine &Machine) {
   switch (Machine) {
     CASE_OUTPUT_ENUM_CLASS_NAME(PDB_Machine, Am33, OS)
     CASE_OUTPUT_ENUM_CLASS_NAME(PDB_Machine, Amd64, OS)
@@ -309,7 +316,7 @@ raw_ostream &llvm::operator<<(raw_ostream &OS, const PDB_Machine &Machine) {
   return OS;
 }
 
-raw_ostream &llvm::operator<<(raw_ostream &OS, const Variant &Value) {
+raw_ostream &llvm::pdb::operator<<(raw_ostream &OS, const Variant &Value) {
   switch (Value.Type) {
     case PDB_VariantType::Bool:
       OS << (Value.Value.Bool ? "true" : "false");
@@ -353,12 +360,13 @@ raw_ostream &llvm::operator<<(raw_ostream &OS, const Variant &Value) {
   return OS;
 }
 
-raw_ostream &llvm::operator<<(raw_ostream &OS, const VersionInfo &Version) {
+raw_ostream &llvm::pdb::operator<<(raw_ostream &OS,
+                                   const VersionInfo &Version) {
   OS << Version.Major << "." << Version.Minor << "." << Version.Build;
   return OS;
 }
 
-raw_ostream &llvm::operator<<(raw_ostream &OS, const TagStats &Stats) {
+raw_ostream &llvm::pdb::operator<<(raw_ostream &OS, const TagStats &Stats) {
   for (auto Tag : Stats) {
     OS << Tag.first << ":" << Tag.second << " ";
   }
index 7b6268d8f655f597cba81d19ad3d53d02fc47589..a347c67ba8e18b8ed5d0e1a36f3fd81831ed5106 100644 (file)
@@ -18,6 +18,7 @@
 #include "llvm/DebugInfo/PDB/IPDBRawSymbol.h"
 
 using namespace llvm;
+using namespace llvm::pdb;
 
 IPDBSession::~IPDBSession() {}
 
index 121e2d13d0c1f837d26e54e64844d3f4bd2a8915..9450a988dd6fbcf413a7c33c1aca277abe0a40cf 100644 (file)
@@ -11,6 +11,7 @@
 #include "llvm/Support/ErrorHandling.h"
 
 using namespace llvm;
+using namespace llvm::pdb;
 
 #define PDB_SYMDUMP_UNREACHABLE(Type)                                          \
   if (RequireImpl)                                                             \
index 9d83181b53f19dc4b51f4454a9285a55f82671bd..78b3afc6079a711a2643db99e02d9f72e4e6270d 100644 (file)
@@ -50,6 +50,7 @@
 #include <utility>
 
 using namespace llvm;
+using namespace llvm::pdb;
 
 PDBSymbol::PDBSymbol(const IPDBSession &PDBSession,
                      std::unique_ptr<IPDBRawSymbol> Symbol)
index a782cad00ae99b4302ba5eb1e6c51cfd78addcf6..cdb167b6191c47d6bf916d59b97d7ff0daeb7d83 100644 (file)
@@ -14,6 +14,7 @@
 #include <utility>
 
 using namespace llvm;
+using namespace llvm::pdb;
 
 PDBSymbolAnnotation::PDBSymbolAnnotation(const IPDBSession &PDBSession,
                                          std::unique_ptr<IPDBRawSymbol> Symbol)
index 46b0ea553e7bb8f49a93aaea84c0f686bbec03b6..fd5dc9427abf8754510a037dcfa4f35c1745dc7a 100644 (file)
@@ -15,6 +15,7 @@
 #include <utility>
 
 using namespace llvm;
+using namespace llvm::pdb;
 
 PDBSymbolBlock::PDBSymbolBlock(const IPDBSession &PDBSession,
                                std::unique_ptr<IPDBRawSymbol> Symbol)
index 8393b5cdfd1acd1a9fef1b28e30b891df5d7a222..ebff08846cacea616fbdcbf8151d1e2c0776a9a8 100644 (file)
@@ -15,6 +15,7 @@
 #include <utility>
 
 using namespace llvm;
+using namespace llvm::pdb;
 
 PDBSymbolCompiland::PDBSymbolCompiland(const IPDBSession &PDBSession,
                                        std::unique_ptr<IPDBRawSymbol> Symbol)
index 7b351a042d05ddee5eb13852247d3ae714b14fd0..6dbd5228f2cd9de9c2061206c33f93fcc3321731 100644 (file)
@@ -15,6 +15,7 @@
 #include <utility>
 
 using namespace llvm;
+using namespace llvm::pdb;
 
 PDBSymbolCompilandDetails::PDBSymbolCompilandDetails(
     const IPDBSession &PDBSession, std::unique_ptr<IPDBRawSymbol> Symbol)
index 1b30c446a4406df47bb3a45320c7fe9916c38881..9c7f0b1be56f461490fcee1d74fd3cd26f04425a 100644 (file)
 #include <utility>
 
 using namespace llvm;
+using namespace llvm::pdb;
 
 PDBSymbolCompilandEnv::PDBSymbolCompilandEnv(
     const IPDBSession &PDBSession, std::unique_ptr<IPDBRawSymbol> Symbol)
     : PDBSymbol(PDBSession, std::move(Symbol)) {}
 
 std::string PDBSymbolCompilandEnv::getValue() const {
-    llvm::Variant Value = RawSymbol->getValue();
-    if (Value.Type != PDB_VariantType::String)
-        return std::string();
-    return std::string(Value.Value.String);
+  Variant Value = RawSymbol->getValue();
+  if (Value.Type != PDB_VariantType::String)
+    return std::string();
+  return std::string(Value.Value.String);
 }
 
 void PDBSymbolCompilandEnv::dump(PDBSymDumper &Dumper) const {
index bd7d9cda21817fbdfaf00a3244238a2873149706..0ea387a0eabb3639708e03ae8f6e3b80f5a07fd3 100644 (file)
@@ -16,6 +16,7 @@
 #include <utility>
 
 using namespace llvm;
+using namespace llvm::pdb;
 
 PDBSymbolCustom::PDBSymbolCustom(const IPDBSession &PDBSession,
                                  std::unique_ptr<IPDBRawSymbol> CustomSymbol)
index a948c2d08afb70ea5748c5b7b502eadca627a6ea..62bb6f3f41e224238598c8d4bfdbaeafbcea41a2 100644 (file)
@@ -15,6 +15,7 @@
 #include <utility>
 
 using namespace llvm;
+using namespace llvm::pdb;
 
 PDBSymbolData::PDBSymbolData(const IPDBSession &PDBSession,
                              std::unique_ptr<IPDBRawSymbol> DataSymbol)
index c9e34ea501dd7947f6ac1d2915f9061438ffd1ba..60101c168a793b56ad952ae1482bfebbeccc8caf 100644 (file)
@@ -14,6 +14,7 @@
 #include <utility>
 
 using namespace llvm;
+using namespace llvm::pdb;
 
 PDBSymbolExe::PDBSymbolExe(const IPDBSession &PDBSession,
                            std::unique_ptr<IPDBRawSymbol> Symbol)
index 0aff327366cbda6392dc8c2fe6aa80e37ebd7528..35251c0cc1c1e60f89ca4d1035ddf6450bbf77d6 100644 (file)
@@ -23,6 +23,7 @@
 #include <vector>
 
 using namespace llvm;
+using namespace llvm::pdb;
 
 namespace {
 class FunctionArgEnumerator : public IPDBEnumChildren<PDBSymbolData> {
index 8e559b324059e5fc03915e48bc62c4da561373ea..77e996f651df8101989d1310d3389656e3e9c0aa 100644 (file)
@@ -15,6 +15,7 @@
 #include <utility>
 
 using namespace llvm;
+using namespace llvm::pdb;
 
 PDBSymbolFuncDebugEnd::PDBSymbolFuncDebugEnd(
     const IPDBSession &PDBSession, std::unique_ptr<IPDBRawSymbol> Symbol)
index ff4254f11504337991f0c8899d535ddea89051d3..9c653879176b0b647806f56d28c5c09ff046354e 100644 (file)
@@ -15,6 +15,7 @@
 #include <utility>
 
 using namespace llvm;
+using namespace llvm::pdb;
 
 PDBSymbolFuncDebugStart::PDBSymbolFuncDebugStart(
     const IPDBSession &PDBSession, std::unique_ptr<IPDBRawSymbol> Symbol)
index f39dee8d949a84fc6cf095548f7152eac09aa6e9..d2cfd11c35e4a712aba7d44d1c09df63211ede5a 100644 (file)
@@ -14,6 +14,7 @@
 #include <utility>
 
 using namespace llvm;
+using namespace llvm::pdb;
 
 PDBSymbolLabel::PDBSymbolLabel(const IPDBSession &PDBSession,
                                std::unique_ptr<IPDBRawSymbol> Symbol)
index bd6fe89ac325477e0289c521f3b9b21fbf09be6b..97d668740818493de9cdb7b8909798e471e3a91a 100644 (file)
@@ -15,6 +15,7 @@
 #include <utility>
 
 using namespace llvm;
+using namespace llvm::pdb;
 
 PDBSymbolPublicSymbol::PDBSymbolPublicSymbol(
     const IPDBSession &PDBSession, std::unique_ptr<IPDBRawSymbol> Symbol)
index 733eb5f75031d74625c7258caeea95f355d23d5a..ef8897d12af41f47d1801ab351913867f7062d43 100644 (file)
@@ -14,6 +14,7 @@
 #include <utility>
 
 using namespace llvm;
+using namespace llvm::pdb;
 
 PDBSymbolThunk::PDBSymbolThunk(const IPDBSession &PDBSession,
                                std::unique_ptr<IPDBRawSymbol> Symbol)
index 19809650361f06230f3e33af72e97b1e01f7ef95..c010cc5d7678fe2159355613856647a0be0fd150 100644 (file)
@@ -15,6 +15,7 @@
 #include <utility>
 
 using namespace llvm;
+using namespace llvm::pdb;
 
 PDBSymbolTypeArray::PDBSymbolTypeArray(const IPDBSession &PDBSession,
                                        std::unique_ptr<IPDBRawSymbol> Symbol)
index c1f0d2f6db11906b5db04c028a7d3049f30cda45..382c397b24d2fc02f2747ca605324cec88d36d43 100644 (file)
@@ -15,6 +15,7 @@
 #include <utility>
 
 using namespace llvm;
+using namespace llvm::pdb;
 
 PDBSymbolTypeBaseClass::PDBSymbolTypeBaseClass(
     const IPDBSession &PDBSession, std::unique_ptr<IPDBRawSymbol> Symbol)
index b302b66298985167ebc4445b726e792f6a02221b..e5d65bf5d1fd5e2e1f7a9794256f4902a8f65614 100644 (file)
@@ -14,6 +14,7 @@
 #include <utility>
 
 using namespace llvm;
+using namespace llvm::pdb;
 
 PDBSymbolTypeBuiltin::PDBSymbolTypeBuiltin(
     const IPDBSession &PDBSession, std::unique_ptr<IPDBRawSymbol> Symbol)
index cc391f1856c89aa30a5aba7060c0c787715b6a57..1d80c97f9ede2a2918461c0e1872d077eeb18ff0 100644 (file)
@@ -15,6 +15,7 @@
 #include <utility>
 
 using namespace llvm;
+using namespace llvm::pdb;
 
 PDBSymbolTypeCustom::PDBSymbolTypeCustom(const IPDBSession &PDBSession,
                                          std::unique_ptr<IPDBRawSymbol> Symbol)
index 1e19d0b001226b55d87cc371dbae9195f2bad877..535d97dcd21e70dceb166dd1872ab15369928ae5 100644 (file)
@@ -16,6 +16,7 @@
 #include <utility>
 
 using namespace llvm;
+using namespace llvm::pdb;
 
 PDBSymbolTypeDimension::PDBSymbolTypeDimension(
     const IPDBSession &PDBSession, std::unique_ptr<IPDBRawSymbol> Symbol)
index 8dd26a342e73c7820a6d22d15d3470646af9981c..788f2b732aaa134f5b86bad1079fe6155d6ba234 100644 (file)
@@ -17,6 +17,7 @@
 #include <utility>
 
 using namespace llvm;
+using namespace llvm::pdb;
 
 PDBSymbolTypeEnum::PDBSymbolTypeEnum(const IPDBSession &PDBSession,
                                      std::unique_ptr<IPDBRawSymbol> Symbol)
index d33266094542a00a6be0f4d7b639a9bed357bcad..5831baebb993c58c96078c1a276a67f65fc56a23 100644 (file)
@@ -15,6 +15,7 @@
 #include <utility>
 
 using namespace llvm;
+using namespace llvm::pdb;
 
 PDBSymbolTypeFriend::PDBSymbolTypeFriend(const IPDBSession &PDBSession,
                                          std::unique_ptr<IPDBRawSymbol> Symbol)
index f8f71ead88b9506a1914db9da31d4fe648424e48..c6f586db9e57bc4a2481d10fa6fd65ba65686d0f 100644 (file)
@@ -14,6 +14,7 @@
 #include <utility>
 
 using namespace llvm;
+using namespace llvm::pdb;
 
 PDBSymbolTypeFunctionArg::PDBSymbolTypeFunctionArg(
     const IPDBSession &PDBSession, std::unique_ptr<IPDBRawSymbol> Symbol)
index af3563f891f8177a105db1be1835bcef811709a3..057ae260885f3ecfb44dcf3d3d4b571d71ec49cf 100644 (file)
@@ -19,6 +19,7 @@
 #include <utility>
 
 using namespace llvm;
+using namespace llvm::pdb;
 
 namespace {
 class FunctionArgEnumerator : public IPDBEnumSymbols {
index a7fac3030e9906248fe0066b68c99a1ed9c249fb..072d2cfd42fbfc08b6f0bd31d978e6113ca7749a 100644 (file)
@@ -15,6 +15,7 @@
 #include <utility>
 
 using namespace llvm;
+using namespace llvm::pdb;
 
 PDBSymbolTypeManaged::PDBSymbolTypeManaged(
     const IPDBSession &PDBSession, std::unique_ptr<IPDBRawSymbol> Symbol)
index 082ed83fcf4eb54a858750b1ebcc6a06c47a1646..699771450a5d8cf34a647cf410e3fcc43beae11c 100644 (file)
@@ -15,6 +15,7 @@
 #include <utility>
 
 using namespace llvm;
+using namespace llvm::pdb;
 
 PDBSymbolTypePointer::PDBSymbolTypePointer(
     const IPDBSession &PDBSession, std::unique_ptr<IPDBRawSymbol> Symbol)
index 5a426993869d732e83f0272992dc46d5ba59bc54..0f283b9e21a4f196ff37ec1b74a1d8841913d231 100644 (file)
@@ -14,6 +14,7 @@
 #include <utility>
 
 using namespace llvm;
+using namespace llvm::pdb;
 
 PDBSymbolTypeTypedef::PDBSymbolTypeTypedef(
     const IPDBSession &PDBSession, std::unique_ptr<IPDBRawSymbol> Symbol)
index 2b5da295fde3c50ce58160d7b26fb4e06f5b8a8d..c71838cc7a6f96b8694ed0db6d1a66bd26c45bbc 100644 (file)
@@ -14,6 +14,7 @@
 #include <utility>
 
 using namespace llvm;
+using namespace llvm::pdb;
 
 PDBSymbolTypeUDT::PDBSymbolTypeUDT(const IPDBSession &PDBSession,
                                    std::unique_ptr<IPDBRawSymbol> Symbol)
index b465d023c59e787767360833d8e3a9137838492c..6b76db5912ce8a753924eb5ee7e6b7cf1920be8d 100644 (file)
@@ -14,6 +14,7 @@
 #include <utility>
 
 using namespace llvm;
+using namespace llvm::pdb;
 
 PDBSymbolTypeVTable::PDBSymbolTypeVTable(const IPDBSession &PDBSession,
                                          std::unique_ptr<IPDBRawSymbol> Symbol)
index 16052f1e6810462f7c964d2de56f5c5ea29a19a8..ef509d64bf6017e68e908f9f8290e999c874557d 100644 (file)
@@ -15,6 +15,7 @@
 #include <utility>
 
 using namespace llvm;
+using namespace llvm::pdb;
 
 PDBSymbolTypeVTableShape::PDBSymbolTypeVTableShape(
     const IPDBSession &PDBSession, std::unique_ptr<IPDBRawSymbol> Symbol)
index 48dc11558ccbb4fa399fef6b1c43798477ac3355..dbbea9c93e2067528e2ff44066f970488d06dbd2 100644 (file)
@@ -15,6 +15,7 @@
 #include <utility>
 
 using namespace llvm;
+using namespace llvm::pdb;
 
 PDBSymbolUnknown::PDBSymbolUnknown(const IPDBSession &PDBSession,
                                    std::unique_ptr<IPDBRawSymbol> Symbol)
index 6cf13de08512ccdcf879e5871ad799928c58f330..6a62d554f42ce24878cf467408abbd7e949125eb 100644 (file)
@@ -15,6 +15,7 @@
 #include <utility>
 
 using namespace llvm;
+using namespace llvm::pdb;
 
 PDBSymbolUsingNamespace::PDBSymbolUsingNamespace(
     const IPDBSession &PDBSession, std::unique_ptr<IPDBRawSymbol> Symbol)
index 12e60476cf7e1327761be6f17b125abe95202ab5..f8db40323149409a341aab707b3800f9bded82ca 100644 (file)
@@ -367,6 +367,7 @@ LLVMSymbolizer::getOrCreateModuleInfo(const std::string &ModuleName) {
 
   std::unique_ptr<DIContext> Context;
   if (auto CoffObject = dyn_cast<COFFObjectFile>(Objects.first)) {
+    using namespace pdb;
     // If this is a COFF object, assume it contains PDB debug information.  If
     // we don't find any we will fall back to the DWARF case.
     std::unique_ptr<IPDBSession> Session;
index 413a3fcba7114f6335e911eb406eba80c92e94ff..2ce1a78391102d1d2951c60f457c8cad5927bf96 100644 (file)
@@ -14,6 +14,7 @@
 #include "llvm/DebugInfo/PDB/PDBSymbolTypeBuiltin.h"
 
 using namespace llvm;
+using namespace llvm::pdb;
 
 BuiltinDumper::BuiltinDumper(LinePrinter &P)
     : PDBSymDumper(false), Printer(P) {}
index c325b531e4f1748dc5641e88e3a4d5673a7b4d93..7a2f1438669c3a251e8b699a38afb68706f02d08 100644 (file)
@@ -14,6 +14,7 @@
 #include "llvm/DebugInfo/PDB/PDBSymDumper.h"
 
 namespace llvm {
+namespace pdb {
 
 class LinePrinter;
 
@@ -29,5 +30,6 @@ private:
   LinePrinter &Printer;
 };
 }
+}
 
 #endif
index 8abf3fa3912af4c831cac60829004e0c0e89a7b6..1dfd879eb820638a6ffc96cb066d86a5d0fef225 100644 (file)
@@ -28,6 +28,7 @@
 #include "llvm/Support/Format.h"
 
 using namespace llvm;
+using namespace llvm::pdb;
 
 ClassDefinitionDumper::ClassDefinitionDumper(LinePrinter &P)
     : PDBSymDumper(true), Printer(P) {}
index 5b48ba879cf7beece61b90e9f63d46211598f190..304e11dcb6c997c99158dc8b029455e70afae186 100644 (file)
@@ -19,6 +19,7 @@
 #include <unordered_map>
 
 namespace llvm {
+namespace pdb {
 
 class LinePrinter;
 
@@ -58,5 +59,5 @@ private:
   int dumpAccessGroup(PDB_MemberAccess Access, const SymbolGroup &Group);
 };
 }
-
+}
 #endif
index 86b54589c24b681c016ab6372031f86f70004a36..b7de0f2534e6a5121fd910275084ebe82450e007 100644 (file)
@@ -35,6 +35,7 @@
 #include <utility>
 
 using namespace llvm;
+using namespace llvm::pdb;
 
 CompilandDumper::CompilandDumper(LinePrinter &P)
     : PDBSymDumper(true), Printer(P) {}
index 204d34acf1bfc0b0328a2676b77e59a3e9f84f06..462aaeb2611fe6bff35b66a618070895a30bfc30 100644 (file)
@@ -13,6 +13,7 @@
 #include "llvm/DebugInfo/PDB/PDBSymDumper.h"
 
 namespace llvm {
+namespace pdb {
 
 class LinePrinter;
 
@@ -38,5 +39,6 @@ private:
   LinePrinter &Printer;
 };
 }
+}
 
 #endif
index 3514c39f6e03362a4731078af1477a933e925092..02c3df748be2f9d7e33fa66429daa6915a82290e 100644 (file)
@@ -18,6 +18,7 @@
 #include "llvm/DebugInfo/PDB/PDBSymbolTypeEnum.h"
 
 using namespace llvm;
+using namespace llvm::pdb;
 
 EnumDumper::EnumDumper(LinePrinter &P) : PDBSymDumper(true), Printer(P) {}
 
index 23de0614247fed4f1b918cb27e958b61b4236040..0a34e1f89ada0bb2b4ebabc735b7b9076b0d2806 100644 (file)
@@ -13,6 +13,7 @@
 #include "llvm/DebugInfo/PDB/PDBSymDumper.h"
 
 namespace llvm {
+namespace pdb {
 
 class LinePrinter;
 
@@ -26,5 +27,5 @@ private:
   LinePrinter &Printer;
 };
 }
-
+}
 #endif
index c4e9f474880e3ad543e278f8bbd221703cc25a38..508a2405772e48c18c994dcfe111980d0f7111c0 100644 (file)
@@ -15,6 +15,7 @@
 #include "llvm/Support/Format.h"
 
 using namespace llvm;
+using namespace llvm::pdb;
 
 ExternalSymbolDumper::ExternalSymbolDumper(LinePrinter &P)
     : PDBSymDumper(true), Printer(P) {}
index d77b09cdebf17a17034800040e879109ebe83114..b44b8a6fe98ae10a353c3ae77aee0067c563777e 100644 (file)
@@ -13,6 +13,7 @@
 #include "llvm/DebugInfo/PDB/PDBSymDumper.h"
 
 namespace llvm {
+namespace pdb {
 
 class LinePrinter;
 
@@ -28,5 +29,6 @@ private:
   LinePrinter &Printer;
 };
 }
+}
 
 #endif
index 7f4181722e7c355af6326c9fecfa5c3ae9f1f8a7..29ba15d521f0e213b0bc63efa3e9917730c9dba1 100644 (file)
@@ -13,6 +13,7 @@
 #include "llvm-pdbdump.h"
 
 #include "llvm/DebugInfo/PDB/IPDBSession.h"
+#include "llvm/DebugInfo/PDB/PDBExtras.h"
 #include "llvm/DebugInfo/PDB/PDBSymbolData.h"
 #include "llvm/DebugInfo/PDB/PDBSymbolFunc.h"
 #include "llvm/DebugInfo/PDB/PDBSymbolFuncDebugEnd.h"
 
 using namespace llvm;
 using namespace llvm::codeview;
+using namespace llvm::pdb;
 
 namespace {
 template <class T>
 void dumpClassParentWithScopeOperator(const T &Symbol, LinePrinter &Printer,
-                                      llvm::FunctionDumper &Dumper) {
+                                      FunctionDumper &Dumper) {
   uint32_t ClassParentId = Symbol.getClassParentId();
   auto ClassParent =
       Symbol.getSession().template getConcreteSymbolById<PDBSymbolTypeUDT>(
@@ -58,7 +60,7 @@ void FunctionDumper::start(const PDBSymbolTypeFunctionSig &Symbol,
       Symbol.getSession().getConcreteSymbolById<PDBSymbolTypeUDT>(
           ClassParentId);
 
-  CallingConvention CC = Symbol.getCallingConvention();
+  PDB_CallingConv CC = Symbol.getCallingConvention();
   bool ShouldDumpCallingConvention = true;
   if ((ClassParent && CC == CallingConvention::ThisCall) ||
       (!ClassParent && CC == CallingConvention::NearStdCall)) {
index 19a00145a1fd79657f20ada39fcfa39019903d14..c71fafa18ed3b9e70c2a7b7bb668c0d88dc93b99 100644 (file)
@@ -13,7 +13,7 @@
 #include "llvm/DebugInfo/PDB/PDBSymDumper.h"
 
 namespace llvm {
-
+namespace pdb {
 class LinePrinter;
 
 class FunctionDumper : public PDBSymDumper {
@@ -38,5 +38,6 @@ private:
   LinePrinter &Printer;
 };
 }
+}
 
 #endif
index a43727f02b5e5aa98579c7f1c3a886b035c4eb5c..db1180902cce373b65705f5371f317dadae4d874 100644 (file)
@@ -16,6 +16,9 @@
 
 #include <algorithm>
 
+using namespace llvm;
+using namespace llvm::pdb;
+
 namespace {
 bool IsItemExcluded(llvm::StringRef Item,
                     std::list<llvm::Regex> &IncludeFilters,
index b0a9d2cfc4e82ad97c455292d3167e2f564573b3..a4401f8af9552c9947335b9a5166b383c2316067 100644 (file)
@@ -18,6 +18,7 @@
 #include <list>
 
 namespace llvm {
+namespace pdb {
 
 class LinePrinter {
   friend class WithColor;
@@ -88,5 +89,6 @@ private:
   raw_ostream &OS;
 };
 }
+}
 
 #endif
index 39bdde93c6a63529ae74e65fdec3f21588c31cba..f6ec9637cf386b02d191965241c245c8a2ce43cc 100644 (file)
@@ -24,6 +24,7 @@
 #include "llvm/DebugInfo/PDB/PDBSymbolTypeUDT.h"
 
 using namespace llvm;
+using namespace llvm::pdb;
 
 TypeDumper::TypeDumper(LinePrinter &P) : PDBSymDumper(true), Printer(P) {}
 
index 5c0832eccaf98c393dc49fd795a367bdd3164327..76a477964f1f78031ced86c7d7fa5ff175e9ab5b 100644 (file)
@@ -13,7 +13,7 @@
 #include "llvm/DebugInfo/PDB/PDBSymDumper.h"
 
 namespace llvm {
-
+namespace pdb {
 class LinePrinter;
 
 class TypeDumper : public PDBSymDumper {
@@ -30,5 +30,5 @@ private:
   LinePrinter &Printer;
 };
 }
-
+}
 #endif
index a6b5c53a6b3a939bef11f313ec1bbfa12f812747..b1e017613ce12834387369ef444ff8412a1c52e3 100644 (file)
@@ -23,6 +23,7 @@
 #include "llvm/DebugInfo/PDB/PDBSymbolTypeUDT.h"
 
 using namespace llvm;
+using namespace llvm::pdb;
 
 TypedefDumper::TypedefDumper(LinePrinter &P) : PDBSymDumper(true), Printer(P) {}
 
index 8cd578cc6d296de62dc86670779858bcc4c2c75e..c22b58a7e41e4dea29f4fbb778ee02314f0a028b 100644 (file)
@@ -13,6 +13,7 @@
 #include "llvm/DebugInfo/PDB/PDBSymDumper.h"
 
 namespace llvm {
+namespace pdb {
 
 class LinePrinter;
 
@@ -33,5 +34,6 @@ private:
   LinePrinter &Printer;
 };
 }
+}
 
 #endif
index e5665b5fcafa4a42f1c8ad9087a027724dd1248e..d8b66a6737c5aaf8938c0c015ee404face6bb0f8 100644 (file)
@@ -27,6 +27,7 @@
 #include "llvm/Support/Format.h"
 
 using namespace llvm;
+using namespace llvm::pdb;
 
 VariableDumper::VariableDumper(LinePrinter &P)
     : PDBSymDumper(true), Printer(P) {}
index 7d4af8afdf8840eb249b6027c12afb9678c02042..4f00358878c94678e39e04fccac7c4a39d0e40f7 100644 (file)
@@ -15,6 +15,9 @@
 namespace llvm {
 
 class StringRef;
+
+namespace pdb {
+
 class LinePrinter;
 
 class VariableDumper : public PDBSymDumper {
@@ -37,5 +40,5 @@ private:
   LinePrinter &Printer;
 };
 }
-
+}
 #endif