From d24427dcc8cd6e0dbcd8c302eb2e8a5d0d6fdead Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Tue, 15 Jan 2019 13:20:05 -0800 Subject: Code style improvements (#1868) * Use modern T p = v; notation to initialize class fields * Use modern X() = default; notation for empty class constructors --- src/passes/Print.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/passes/Print.cpp') diff --git a/src/passes/Print.cpp b/src/passes/Print.cpp index e544447fe..3de8b5c01 100644 --- a/src/passes/Print.cpp +++ b/src/passes/Print.cpp @@ -1350,7 +1350,7 @@ Pass *createPrinterPass() { class MinifiedPrinter : public Printer { public: - MinifiedPrinter() : Printer() {} + MinifiedPrinter() = default; MinifiedPrinter(std::ostream* o) : Printer(o) {} void run(PassRunner* runner, Module* module) override { @@ -1368,7 +1368,7 @@ Pass *createMinifiedPrinterPass() { class FullPrinter : public Printer { public: - FullPrinter() : Printer() {} + FullPrinter() = default; FullPrinter(std::ostream* o) : Printer(o) {} void run(PassRunner* runner, Module* module) override { @@ -1386,7 +1386,7 @@ Pass *createFullPrinterPass() { class PrintStackIR : public Printer { public: - PrintStackIR() : Printer() {} + PrintStackIR() = default; PrintStackIR(std::ostream* o) : Printer(o) {} void run(PassRunner* runner, Module* module) override { -- cgit v1.2.3