Skip to content

Commit 3b4b2f2

Browse files
author
Daniel Kroening
committed
messaging API
1 parent c14c55f commit 3b4b2f2

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/verilog/verilog_language.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ bool verilog_languaget::typecheck(
162162
if(verilog_typecheck(parse_tree, symbol_table, module, get_message_handler()))
163163
return true;
164164

165-
print(9, "Synthesis "+module);
165+
debug() << "Synthesis " << module << eom;
166166

167167
if(verilog_synthesis(symbol_table, module, get_message_handler(), options))
168168
return true;

src/vhdl/parser.y

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ int yyvhdlerror(const char *error_str)
5353
source_location.set_line(yyvhdllval.line);
5454
source_location.set_file(yyvhdllval.file);
5555

56-
PARSER.print(1, tmp, -1, source_location);
56+
PARSER.error().source_location=source_location;
57+
PARSER.error() << tmp << messaget::eom;
5758

5859
return strlen(error_str)+1;
5960
}

0 commit comments

Comments
 (0)