From e27d435c8bf6f852117ade8625d7a34f5f602897 Mon Sep 17 00:00:00 2001 From: steve Date: Sun, 6 Jun 1999 20:33:30 +0000 Subject: [PATCH] implement some null-target code generation. --- t-null.cc | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/t-null.cc b/t-null.cc index 81fa936a9..c107dbb04 100644 --- a/t-null.cc +++ b/t-null.cc @@ -17,17 +17,33 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA */ #if !defined(WINNT) -#ident "$Id: t-null.cc,v 1.1 1999/01/24 01:35:08 steve Exp $" +#ident "$Id: t-null.cc,v 1.2 1999/06/06 20:33:30 steve Exp $" #endif # include "netlist.h" # include "target.h" -static target_t target_null_obj; +/* + * This target type simply drops the netlist. It is useful for + * skipping the code generation phase. + */ +static class target_null_t : public target_t { + + public: + void bufz(ostream&os, const NetBUFZ*) { } + void net_esignal(ostream&, const NetESignal*) { } + void net_event(ostream&, const NetNEvent*) { } + void proc_delay(ostream&, const NetPDelay*) { } + void proc_event(ostream&, const NetPEvent*) { } + +} target_null_obj; extern const struct target tgt_null = { "null", &target_null_obj }; /* * $Log: t-null.cc,v $ + * Revision 1.2 1999/06/06 20:33:30 steve + * implement some null-target code generation. + * * Revision 1.1 1999/01/24 01:35:08 steve * Support null target for generating no output. *