Try moving this function to another file.
authorZachary Turner <zturner@google.com>
Fri, 21 Sep 2018 23:00:37 +0000 (23:00 +0000)
committerZachary Turner <zturner@google.com>
Fri, 21 Sep 2018 23:00:37 +0000 (23:00 +0000)
I can't reproduce this compilation failure so I can't really
test this fix.

llvm-svn: 342784

llvm/include/llvm/DebugInfo/PDB/IPDBRawSymbol.h
llvm/include/llvm/DebugInfo/PDB/PDBExtras.h

index 40a5b3b..7c818d7 100644 (file)
@@ -37,13 +37,6 @@ enum class PdbSymbolIdField : uint32_t {
   LLVM_MARK_AS_BITMASK_ENUM(/* LargestValue = */ All)
 };
 
-template <typename T>
-void dumpSymbolField(raw_ostream &OS, StringRef Name, T Value, int Indent) {
-  OS << "\n";
-  OS.indent(Indent);
-  OS << Name << ": " << Value;
-}
-
 void dumpSymbolIdField(raw_ostream &OS, StringRef Name, SymIndexId Value,
                        int Indent, const IPDBSession &Session,
                        PdbSymbolIdField FieldId, PdbSymbolIdField ShowFlags,
index cdf4196..aaec71a 100644 (file)
@@ -12,6 +12,8 @@
 
 #include "llvm/DebugInfo/CodeView/CodeView.h"
 #include "llvm/DebugInfo/PDB/PDBTypes.h"
+#include "llvm/Support/raw_ostream.h"
+
 #include <unordered_map>
 
 namespace llvm {
@@ -42,6 +44,15 @@ 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);
 
+
+template <typename T>
+void dumpSymbolField(raw_ostream &OS, StringRef Name, T Value, int Indent) {
+  OS << "\n";
+  OS.indent(Indent);
+  OS << Name << ": " << Value;
+}
+
+
 } // end namespace pdb
 
 } // end namespace llvm