[DebugInfoPDB] Print the method name along with the variant value
authorAaron Smith <aaron.smith@microsoft.com>
Mon, 26 Mar 2018 22:53:38 +0000 (22:53 +0000)
committerAaron Smith <aaron.smith@microsoft.com>
Mon, 26 Mar 2018 22:53:38 +0000 (22:53 +0000)
Before this change, using dumpProperties() with PDBSymbolData
would look like this:

  get_locationType: 3
  1

After this change:

  get_locationType: 3
  get_value: 1

llvm-svn: 328590

llvm/lib/DebugInfo/PDB/DIA/DIARawSymbol.cpp

index 0f763cd..7d6cb25 100644 (file)
@@ -180,7 +180,7 @@ void DumpDIAValue(llvm::raw_ostream &OS, int Indent, StringRef Name,
   OS << "\n";
   OS.indent(Indent);
   Variant V = VariantFromVARIANT(Value);
-  OS << V;
+  OS << Name << ": " << V;
 }
 }