From c1ed2607fbda1066401e8b96c3c998510a3eab96 Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Sat, 25 Jan 2014 06:32:16 +0100 Subject: [PATCH] Added support for // comments in liberty parser --- passes/techmap/libparse.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/passes/techmap/libparse.cc b/passes/techmap/libparse.cc index 8f4a1a5fa..8cbb8e2be 100644 --- a/passes/techmap/libparse.cc +++ b/passes/techmap/libparse.cc @@ -126,6 +126,11 @@ int LibertyParser::lexer(std::string &str) line++; } return lexer(str); + } else if (c == '/') { + while (c > 0 && c != '\n') + c = fgetc(f); + line++; + return lexer(str); } ungetc(c, f); // fprintf(stderr, "LEX: char >>/<<\n"); -- 2.30.2