16a5c9aabSmrg /* brig-comment-handler.cc -- brig comment directive handling
2*dd083157Smrg    Copyright (C) 2016-2020 Free Software Foundation, Inc.
36a5c9aabSmrg    Contributed by Pekka Jaaskelainen <pekka.jaaskelainen@parmance.com>
46a5c9aabSmrg    for General Processor Tech.
56a5c9aabSmrg 
66a5c9aabSmrg This file is part of GCC.
76a5c9aabSmrg 
86a5c9aabSmrg GCC is free software; you can redistribute it and/or modify it under
96a5c9aabSmrg the terms of the GNU General Public License as published by the Free
106a5c9aabSmrg Software Foundation; either version 3, or (at your option) any later
116a5c9aabSmrg version.
126a5c9aabSmrg 
136a5c9aabSmrg GCC is distributed in the hope that it will be useful, but WITHOUT ANY
146a5c9aabSmrg WARRANTY; without even the implied warranty of MERCHANTABILITY or
156a5c9aabSmrg FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
166a5c9aabSmrg for more details.
176a5c9aabSmrg 
186a5c9aabSmrg You should have received a copy of the GNU General Public License
196a5c9aabSmrg along with GCC; see the file COPYING3.  If not see
206a5c9aabSmrg <http://www.gnu.org/licenses/>.  */
216a5c9aabSmrg 
226a5c9aabSmrg #include "brig-code-entry-handler.h"
236a5c9aabSmrg 
246a5c9aabSmrg extern int gccbrig_verbose;
256a5c9aabSmrg 
266a5c9aabSmrg size_t
operator ()(const BrigBase * base)276a5c9aabSmrg brig_directive_comment_handler::operator () (const BrigBase *base)
286a5c9aabSmrg {
296a5c9aabSmrg   const BrigDirectiveComment *brig_comment
306a5c9aabSmrg     = (const BrigDirectiveComment *) base;
316a5c9aabSmrg 
326a5c9aabSmrg   if (gccbrig_verbose)
336a5c9aabSmrg     {
346a5c9aabSmrg       std::string cmnt = m_parent.get_string (brig_comment->name);
356a5c9aabSmrg       fprintf (stderr, "brig: Comment: '%s'\n", cmnt.c_str());
366a5c9aabSmrg     }
376a5c9aabSmrg   return base->byteCount;
386a5c9aabSmrg }
39