aboutsummaryrefslogtreecommitdiffstats
path: root/fpga_interchange/macros.cc
diff options
context:
space:
mode:
authormyrtle <gatecat@ds0.me>2022-08-10 11:25:34 +0100
committerGitHub <noreply@github.com>2022-08-10 11:25:34 +0100
commit66722096edaff35f1620ebfc9acaab13ae149377 (patch)
tree8b189e44b65afabfaddb3402ab8aac544df9ba83 /fpga_interchange/macros.cc
parent06ce27ed38279cfa3455e248ea2b2c773cdf6324 (diff)
parent77c82b0fbf15892b0c8222bac89564f3f024493e (diff)
downloadnextpnr-66722096edaff35f1620ebfc9acaab13ae149377.tar.gz
nextpnr-66722096edaff35f1620ebfc9acaab13ae149377.tar.bz2
nextpnr-66722096edaff35f1620ebfc9acaab13ae149377.zip
Merge pull request #1010 from YosysHQ/gatecat/idf
refactor: id(stringf(...)) to new idf(...) helper
Diffstat (limited to 'fpga_interchange/macros.cc')
-rw-r--r--fpga_interchange/macros.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/fpga_interchange/macros.cc b/fpga_interchange/macros.cc
index 8f7f8231..cc67833a 100644
--- a/fpga_interchange/macros.cc
+++ b/fpga_interchange/macros.cc
@@ -45,7 +45,7 @@ static const MacroExpansionPOD *lookup_macro_rules(const ChipInfoPOD *chip, IdSt
static IdString derived_name(Context *ctx, IdString base_name, IdString suffix)
{
- return ctx->id(stringf("%s/%s", base_name.c_str(ctx), suffix.c_str(ctx)));
+ return ctx->idf("%s/%s", base_name.c_str(ctx), suffix.c_str(ctx));
}
void Arch::expand_macros()