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

Unified Diff: src/IceCfg.cpp

Issue 1024203002: Move some flag-like props from GlobalContext and TargetLowering to ClFlags. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: review / clean up formatting Created 5 years, 9 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/IceClFlags.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 2a1fdb68d52291e4f5e83d6ca1357621f49d3862..e6a9cabe9007615ec1a8e2ac0a9c10c55691f1c0 100644
--- a/src/IceCfg.cpp
+++ b/src/IceCfg.cpp
@@ -32,15 +32,16 @@ ArenaAllocator<> *getCurrentCfgAllocator() {
}
Cfg::Cfg(GlobalContext *Ctx, uint32_t SequenceNumber)
- : Ctx(Ctx), SequenceNumber(SequenceNumber), VMask(Ctx->getVerbose()),
- FunctionName(""), ReturnType(IceType_void), IsInternalLinkage(false),
- HasError(false), FocusedTiming(false), ErrorMessage(""), Entry(nullptr),
+ : 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->getTargetArch(), this)),
+ Live(nullptr), Target(TargetLowering::createLowering(
+ Ctx->getFlags().getTargetArch(), this)),
VMetadata(new VariablesMetadata(this)),
- TargetAssembler(
- TargetLowering::createAssembler(Ctx->getTargetArch(), this)),
+ TargetAssembler(TargetLowering::createAssembler(
+ Ctx->getFlags().getTargetArch(), this)),
CurrentNode(nullptr) {
assert(!Ctx->isIRGenerationDisabled() &&
"Attempt to build cfg when IR generation disabled");
« no previous file with comments | « no previous file | src/IceClFlags.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698