aboutsummaryrefslogtreecommitdiffstats
path: root/common/nextpnr.cc
diff options
context:
space:
mode:
Diffstat (limited to 'common/nextpnr.cc')
-rw-r--r--common/nextpnr.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/common/nextpnr.cc b/common/nextpnr.cc
index 3861e5fe..54df5de1 100644
--- a/common/nextpnr.cc
+++ b/common/nextpnr.cc
@@ -21,6 +21,17 @@
NEXTPNR_NAMESPACE_BEGIN
+MutateContext BaseCtx::rwproxy(void)
+{
+ return MutateContext(reinterpret_cast<Arch *>(this));
+}
+
+ReadContext BaseCtx::rproxy(void) const
+{
+ return ReadContext(reinterpret_cast<const Arch *>(this));
+}
+
+
assertion_failure::assertion_failure(std::string msg, std::string expr_str, std::string filename, int line)
: runtime_error("Assertion failure: " + msg + " (" + filename + ":" + std::to_string(line) + ")"), msg(msg),
expr_str(expr_str), filename(filename), line(line)