From 41726087b7577f2ce46acb2456f254a063cbbf52 Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Tue, 31 Jul 2018 17:01:38 +0200 Subject: getChipName() should be const Signed-off-by: Clifford Wolf --- ice40/arch.cc | 2 +- ice40/arch.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'ice40') diff --git a/ice40/arch.cc b/ice40/arch.cc index fd68e972..f3004155 100644 --- a/ice40/arch.cc +++ b/ice40/arch.cc @@ -204,7 +204,7 @@ Arch::Arch(ArchArgs args) : args(args) // ----------------------------------------------------------------------- -std::string Arch::getChipName() +std::string Arch::getChipName() const { #ifdef ICE40_HX1K_ONLY if (args.type == ArchArgs::HX1K) { diff --git a/ice40/arch.h b/ice40/arch.h index 1d68ec4a..7efa733c 100644 --- a/ice40/arch.h +++ b/ice40/arch.h @@ -365,7 +365,7 @@ struct Arch : BaseCtx ArchArgs args; Arch(ArchArgs args); - std::string getChipName(); + std::string getChipName() const; IdString archId() const { return id("ice40"); } IdString archArgsToId(ArchArgs args) const; -- cgit v1.2.3