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"); |