]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/brig/brigfrontend/brig-comment-handler.cc
Update copyright years.
[thirdparty/gcc.git] / gcc / brig / brigfrontend / brig-comment-handler.cc
1 /* brig-comment-handler.cc -- brig comment directive handling
2 Copyright (C) 2016-2020 Free Software Foundation, Inc.
3 Contributed by Pekka Jaaskelainen <pekka.jaaskelainen@parmance.com>
4 for General Processor Tech.
5
6 This file is part of GCC.
7
8 GCC is free software; you can redistribute it and/or modify it under
9 the terms of the GNU General Public License as published by the Free
10 Software Foundation; either version 3, or (at your option) any later
11 version.
12
13 GCC is distributed in the hope that it will be useful, but WITHOUT ANY
14 WARRANTY; without even the implied warranty of MERCHANTABILITY or
15 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
16 for more details.
17
18 You should have received a copy of the GNU General Public License
19 along with GCC; see the file COPYING3. If not see
20 <http://www.gnu.org/licenses/>. */
21
22 #include "brig-code-entry-handler.h"
23
24 extern int gccbrig_verbose;
25
26 size_t
27 brig_directive_comment_handler::operator () (const BrigBase *base)
28 {
29 const BrigDirectiveComment *brig_comment
30 = (const BrigDirectiveComment *) base;
31
32 if (gccbrig_verbose)
33 {
34 std::string cmnt = m_parent.get_string (brig_comment->name);
35 fprintf (stderr, "brig: Comment: '%s'\n", cmnt.c_str());
36 }
37 return base->byteCount;
38 }