From 9ae21263f0de0c0011c7de290af3600ddeb51a34 Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Tue, 24 Feb 2015 22:31:30 +0100 Subject: Some cleanups in "clean" --- kernel/rtlil.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'kernel') diff --git a/kernel/rtlil.h b/kernel/rtlil.h index dd40e2fba..1d0008f9d 100644 --- a/kernel/rtlil.h +++ b/kernel/rtlil.h @@ -807,6 +807,14 @@ struct RTLIL::Design bool selected_module(RTLIL::Module *mod) const; bool selected_whole_module(RTLIL::Module *mod) const; + RTLIL::Selection &selection() { + return selection_stack.back(); + } + + const RTLIL::Selection &selection() const { + return selection_stack.back(); + } + bool full_selection() const { return selection_stack.back().full_selection; } -- cgit v1.2.3