Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1182)

Unified Diff: src/PNaClTranslator.cpp

Issue 1201023002: Subzero: Use more "= default;" for ctors and dtors. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/IceTargetLoweringMIPS32.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/PNaClTranslator.cpp
diff --git a/src/PNaClTranslator.cpp b/src/PNaClTranslator.cpp
index 11a1f27efb5d3d8b6eae3d10daeb232b09a8fbc5..a9f60b859cc41a7b38dec8303756a5c329d1c280 100644
--- a/src/PNaClTranslator.cpp
+++ b/src/PNaClTranslator.cpp
@@ -168,7 +168,7 @@ public:
ErrorStatus(ErrorStatus),
VariableDeclarations(new Ice::VariableDeclarationList()) {}
- ~TopLevelParser() override {}
+ ~TopLevelParser() override = default;
Ice::Translator &getTranslator() const { return Translator; }
@@ -728,7 +728,7 @@ public:
: BlockParserBaseClass(BlockID, EnclosingParser),
Timer(Ice::TimerStack::TT_parseTypes, getTranslator().getContext()) {}
- ~TypesParser() override {}
+ ~TypesParser() override = default;
private:
Ice::TimerMarker Timer;
@@ -909,7 +909,7 @@ public:
Ice::VariableDeclaration::create(getTranslator().getContext())),
CurGlobalVar(DummyGlobalVar) {}
- ~GlobalsParser() final {}
+ ~GlobalsParser() final = default;
const char *getBlockName() const override { return "globals"; }
@@ -1063,7 +1063,7 @@ public:
ValuesymtabParser(unsigned BlockID, BlockParserBaseClass *EnclosingParser)
: BlockParserBaseClass(BlockID, EnclosingParser) {}
- ~ValuesymtabParser() override {}
+ ~ValuesymtabParser() override = default;
const char *getBlockName() const override { return "valuesymtab"; }
@@ -1187,7 +1187,7 @@ public:
return ParserResult;
}
- ~FunctionParser() final {}
+ ~FunctionParser() final = default;
const char *getBlockName() const override { return "function"; }
@@ -2606,7 +2606,7 @@ public:
Timer(Ice::TimerStack::TT_parseConstants, getTranslator().getContext()),
FuncParser(FuncParser) {}
- ~ConstantsParser() override {}
+ ~ConstantsParser() override = default;
const char *getBlockName() const override { return "constants"; }
@@ -2821,7 +2821,7 @@ public:
Timer(Ice::TimerStack::TT_parseModule,
Context->getTranslator().getContext()) {}
- ~ModuleParser() override {}
+ ~ModuleParser() override = default;
const char *getBlockName() const override { return "module"; }
@@ -2861,7 +2861,7 @@ public:
Timer(Ice::TimerStack::TT_parseModuleValuesymtabs,
getTranslator().getContext()) {}
- ~ModuleValuesymtabParser() override {}
+ ~ModuleValuesymtabParser() override = default;
private:
Ice::TimerMarker Timer;
« no previous file with comments | « src/IceTargetLoweringMIPS32.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698