Fixed/added namespace ending comments using clang-tidy. NFC
[oota-llvm.git] / lib / DebugInfo / PDB / PDBSymbolTypeFunctionArg.cpp
index 30db55ab31526f5dde1863332d80f5816f2c46d8..f8f71ead88b9506a1914db9da31d4fe648424e48 100644 (file)
@@ -9,8 +9,7 @@
 
 #include "llvm/DebugInfo/PDB/PDBSymbolTypeFunctionArg.h"
 
-#include "llvm/DebugInfo/PDB/IPDBSession.h"
-#include "llvm/DebugInfo/PDB/PDBSymbol.h"
+#include "llvm/DebugInfo/PDB/PDBSymDumper.h"
 
 #include <utility>
 
@@ -20,11 +19,6 @@ 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);
 }