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

Unified Diff: src/IceCfg.cpp

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 | « src/IceCfg.h ('k') | src/IceCfgNode.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceCfg.cpp
diff --git a/src/IceCfg.cpp b/src/IceCfg.cpp
index 2cbe571c815035b22cf054830a5c8617ed844f19..f3b04eb47364bf9527624341290afa8237d6a6af 100644
--- a/src/IceCfg.cpp
+++ b/src/IceCfg.cpp
@@ -34,16 +34,13 @@ ArenaAllocator<> *getCurrentCfgAllocator() {
Cfg::Cfg(GlobalContext *Ctx, uint32_t SequenceNumber)
: Ctx(Ctx), SequenceNumber(SequenceNumber),
- VMask(Ctx->getFlags().getVerbose()), FunctionName(""),
- ReturnType(IceType_void), IsInternalLinkage(false), HasError(false),
- FocusedTiming(false), ErrorMessage(""), Entry(nullptr),
- NextInstNumber(Inst::NumberInitial), Allocator(new ArenaAllocator<>()),
- Live(nullptr), Target(TargetLowering::createLowering(
- Ctx->getFlags().getTargetArch(), this)),
+ VMask(Ctx->getFlags().getVerbose()), NextInstNumber(Inst::NumberInitial),
+ Allocator(new ArenaAllocator<>()), Live(nullptr),
+ Target(TargetLowering::createLowering(Ctx->getFlags().getTargetArch(),
+ this)),
VMetadata(new VariablesMetadata(this)),
TargetAssembler(TargetLowering::createAssembler(
- Ctx->getFlags().getTargetArch(), this)),
- CurrentNode(nullptr) {
+ Ctx->getFlags().getTargetArch(), this)) {
assert(!Ctx->isIRGenerationDisabled() &&
"Attempt to build cfg when IR generation disabled");
}
« no previous file with comments | « src/IceCfg.h ('k') | src/IceCfgNode.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698