Alexandros Tzannes <tzannes <at> cs.umd.edu> writes:

> I have written some passes in CIL and I want to be able to output some 
> comments in the code produced by CIL.

I assume you've seen http://www.eecs.berkeley.edu/~necula/cil/cil011.html
where it suggests using attributes or pragmas:
  CIL operates after preprocessing. If you need to see comments, for example,
  you cannot use CIL. But you can use attributes and pragmas instead.

If that's not what you're looking for, here's a silly possible solution.
You could create function
  void comment(const char *s) {}
and insert your comments by adding calls like
  comment("place your comment here");

Elnatan


------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
CIL-users mailing list
CIL-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cil-users

Reply via email to