Re-sort #include lines using my handy dandy ./utils/sort_includes.py
[oota-llvm.git] / lib / DebugInfo / PDB / PDBSymbolData.cpp
index 3c4be3ad2d08a55c17370ba92dd44ad67dbc8a34..e0888dcec7fcd2c3214c22df22ee2a7947d6e495 100644 (file)
@@ -7,13 +7,12 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <utility>
 #include "llvm/DebugInfo/PDB/IPDBSession.h"
 #include "llvm/DebugInfo/PDB/PDBExtras.h"
 #include "llvm/DebugInfo/PDB/PDBSymbolData.h"
 #include "llvm/DebugInfo/PDB/PDBSymbolTypeUDT.h"
-
 #include "llvm/Support/Format.h"
+#include <utility>
 
 using namespace llvm;
 
@@ -26,7 +25,7 @@ void PDBSymbolData::dump(raw_ostream &OS, int Indent,
   OS << stream_indent(Indent);
   PDB_LocType Loc = getLocationType();
   PDB_DataKind Kind = getDataKind();
-  if (Level == PDB_DumpLevel::Compact) {
+  if (Level >= PDB_DumpLevel::Normal) {
     switch (Loc) {
     case PDB_LocType::Static: {
       uint32_t RVA = getRelativeVirtualAddress();
@@ -75,6 +74,7 @@ void PDBSymbolData::dump(raw_ostream &OS, int Indent,
       OS << "???";
     }
   }
+
   OS << "] ";
   if (Kind == PDB_DataKind::Member || Kind == PDB_DataKind::StaticMember) {
     uint32_t ClassId = getClassParentId();
@@ -86,6 +86,5 @@ void PDBSymbolData::dump(raw_ostream &OS, int Indent,
       OS << "::";
     }
   }
-  OS << getName() << "\n";
-  OS.flush();
+  OS << getName();
 }
\ No newline at end of file