diff options
author | gatecat <gatecat@ds0.me> | 2022-02-16 17:09:54 +0000 |
---|---|---|
committer | gatecat <gatecat@ds0.me> | 2022-02-16 17:09:54 +0000 |
commit | 76683a1e3c123d28deff750c38467c6377936879 (patch) | |
tree | 379b38c06745919df0e87c1be1410e16793b0925 /ice40/main.cc | |
parent | 9ef0bc3d3ad667d937ed803eba7b216a604d5624 (diff) | |
download | nextpnr-76683a1e3c123d28deff750c38467c6377936879.tar.gz nextpnr-76683a1e3c123d28deff750c38467c6377936879.tar.bz2 nextpnr-76683a1e3c123d28deff750c38467c6377936879.zip |
refactor: Use constids instead of id("..")
Signed-off-by: gatecat <gatecat@ds0.me>
Diffstat (limited to 'ice40/main.cc')
-rw-r--r-- | ice40/main.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ice40/main.cc b/ice40/main.cc index e480a6ce..224b0275 100644 --- a/ice40/main.cc +++ b/ice40/main.cc @@ -265,13 +265,13 @@ std::unique_ptr<Context> Ice40CommandHandler::createContext(dict<std::string, Pr ctx->settings[ctx->id("arch.package")] = ctx->archArgs().package; if (vm.count("promote-logic")) - ctx->settings[ctx->id("promote_logic")] = Property::State::S1; + ctx->settings[id_promote_logic] = Property::State::S1; if (vm.count("no-promote-globals")) - ctx->settings[ctx->id("no_promote_globals")] = Property::State::S1; + ctx->settings[id_no_promote_globals] = Property::State::S1; if (vm.count("opt-timing")) - ctx->settings[ctx->id("opt_timing")] = Property::State::S1; + ctx->settings[id_opt_timing] = Property::State::S1; if (vm.count("pcf-allow-unconstrained")) - ctx->settings[ctx->id("pcf_allow_unconstrained")] = Property::State::S1; + ctx->settings[id_pcf_allow_unconstrained] = Property::State::S1; return ctx; } |