Fixed/added namespace ending comments using clang-tidy. NFC
[oota-llvm.git] / lib / DebugInfo / PDB / PDBSymbolTypeFunctionArg.cpp
index 2f5be7c4d4be1e9357b83ce77042976d89bdf988..f8f71ead88b9506a1914db9da31d4fe648424e48 100644 (file)
@@ -7,23 +7,18 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <utility>
-
-#include "llvm/DebugInfo/PDB/IPDBSession.h"
-#include "llvm/DebugInfo/PDB/PDBSymbol.h"
 #include "llvm/DebugInfo/PDB/PDBSymbolTypeFunctionArg.h"
 
+#include "llvm/DebugInfo/PDB/PDBSymDumper.h"
+
+#include <utility>
+
 using namespace llvm;
 
 PDBSymbolTypeFunctionArg::PDBSymbolTypeFunctionArg(
     const IPDBSession &PDBSession, std::unique_ptr<IPDBRawSymbol> Symbol)
     : PDBSymbol(PDBSession, std::move(Symbol)) {}
 
-void PDBSymbolTypeFunctionArg::dump(raw_ostream &OS, int Indent,
-                                    PDB_DumpLevel Level) const {
-  OS << stream_indent(Indent);
-  uint32_t TypeId = getTypeId();
-  if (auto Type = Session.getSymbolById(TypeId)) {
-    Type->dump(OS, 0, Level);
-  }
+void PDBSymbolTypeFunctionArg::dump(PDBSymDumper &Dumper) const {
+  Dumper.dump(*this);
 }