diff --git a/lib/DebugInfo/CodeView/SymbolDumper.cpp b/lib/DebugInfo/CodeView/SymbolDumper.cpp index 3ea4e51dc37..ab69240f2e5 100644 --- a/lib/DebugInfo/CodeView/SymbolDumper.cpp +++ b/lib/DebugInfo/CodeView/SymbolDumper.cpp @@ -181,12 +181,10 @@ static const EnumEntry FrameProcSymFlags[] = { /// the visitor out of SymbolDumper.h. class CVSymbolDumperImpl : public CVSymbolVisitor { public: - CVSymbolDumperImpl(CVSymbolDumper &CVSD, CVTypeDumper &CVTD, - SymbolDumpDelegate *ObjDelegate, ScopedPrinter &W, - bool PrintRecordBytes) - : CVSymbolVisitor(ObjDelegate), CVSD(CVSD), CVTD(CVTD), - ObjDelegate(ObjDelegate), W(W), PrintRecordBytes(PrintRecordBytes), - InFunctionScope(false) {} + CVSymbolDumperImpl(CVTypeDumper &CVTD, SymbolDumpDelegate *ObjDelegate, + ScopedPrinter &W, bool PrintRecordBytes) + : CVSymbolVisitor(ObjDelegate), CVTD(CVTD), ObjDelegate(ObjDelegate), + W(W), PrintRecordBytes(PrintRecordBytes), InFunctionScope(false) {} /// CVSymbolVisitor overrides. #define SYMBOL_RECORD(EnumName, EnumVal, Name) \ @@ -203,7 +201,6 @@ private: uint32_t RelocationOffset); void printLocalVariableAddrGap(ArrayRef Gaps); - CVSymbolDumper &CVSD; CVTypeDumper &CVTD; SymbolDumpDelegate *ObjDelegate; ScopedPrinter &W; @@ -656,15 +653,13 @@ void CVSymbolDumperImpl::visitUnknownSymbol(SymbolKind Kind, } bool CVSymbolDumper::dump(const SymbolIterator::Record &Record) { - CVSymbolDumperImpl Dumper(*this, CVTD, ObjDelegate.get(), W, - PrintRecordBytes); + CVSymbolDumperImpl Dumper(CVTD, ObjDelegate.get(), W, PrintRecordBytes); Dumper.visitSymbolRecord(Record); return !Dumper.hadError(); } bool CVSymbolDumper::dump(ArrayRef Data) { - CVSymbolDumperImpl Dumper(*this, CVTD, ObjDelegate.get(), W, - PrintRecordBytes); + CVSymbolDumperImpl Dumper(CVTD, ObjDelegate.get(), W, PrintRecordBytes); Dumper.visitSymbolStream(Data); return !Dumper.hadError(); }