[mips][microMIPSr6] Implement ADD, ADDU and ADDIU instructions
[oota-llvm.git] / tools / llvm-pdbdump / TypeDumper.h
index 6c51d155df8b368a07fcb74c5432bd41a914a678..5c0832eccaf98c393dc49fd795a367bdd3164327 100644 (file)
 
 namespace llvm {
 
+class LinePrinter;
+
 class TypeDumper : public PDBSymDumper {
 public:
-  TypeDumper();
+  TypeDumper(LinePrinter &P);
+
+  void start(const PDBSymbolExe &Exe);
 
-  void start(const PDBSymbolExe &Exe, raw_ostream &OS, int Indent);
+  void dump(const PDBSymbolTypeEnum &Symbol) override;
+  void dump(const PDBSymbolTypeTypedef &Symbol) override;
+  void dump(const PDBSymbolTypeUDT &Symbol) override;
 
-  void dump(const PDBSymbolTypeEnum &Symbol, raw_ostream &OS,
-            int Indent) override;
-  void dump(const PDBSymbolTypeFunctionSig &Symbol, raw_ostream &OS,
-            int Indent) override;
-  void dump(const PDBSymbolTypeTypedef &Symbol, raw_ostream &OS,
-            int Indent) override;
+private:
+  LinePrinter &Printer;
 };
 }