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

Unified Diff: src/IceAssembler.h

Issue 1197223002: Subzero: Use C++11 member initializers where practical. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Rebase 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 | « no previous file | src/IceAssembler.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceAssembler.h
diff --git a/src/IceAssembler.h b/src/IceAssembler.h
index 69faa95f98809635ecb66ffede847d95310957a4..de4dd869dab99a5e29d2cdbd2568fad7217c77d0 100644
--- a/src/IceAssembler.h
+++ b/src/IceAssembler.h
@@ -155,9 +155,7 @@ class Assembler {
Assembler &operator=(const Assembler &) = delete;
public:
- Assembler()
- : Allocator(), FunctionName(""), IsInternal(false), Preliminary(false),
- Buffer(*this) {}
+ Assembler() : Allocator(), Buffer(*this) {}
virtual ~Assembler() = default;
// Allocate a chunk of bytes using the per-Assembler allocator.
@@ -217,13 +215,13 @@ private:
// FunctionName and IsInternal are transferred from the original Cfg
// object, since the Cfg object may be deleted by the time the
// assembler buffer is emitted.
- IceString FunctionName;
- bool IsInternal;
+ IceString FunctionName = "";
+ bool IsInternal = false;
// Preliminary indicates whether a preliminary pass is being made
// for calculating bundle padding (Preliminary=true), versus the
// final pass where all changes to label bindings, label links, and
// relocation fixups are fully committed (Preliminary=false).
- bool Preliminary;
+ bool Preliminary = false;
protected:
// Buffer's constructor uses the Allocator, so it needs to appear after it.
« no previous file with comments | « no previous file | src/IceAssembler.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698