aboutsummaryrefslogtreecommitdiffstats
path: root/passes
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2014-01-14 18:57:47 +0100
committerClifford Wolf <clifford@clifford.at>2014-01-14 18:57:47 +0100
commit9a00980129268dee9ad3bc44468045164cff787a (patch)
tree71dc6da79cbc3764cc16e90cbc501d2b24f71894 /passes
parentc1da7661a5d4dc2669db77912a8f81fa8095f1fa (diff)
downloadyosys-9a00980129268dee9ad3bc44468045164cff787a.tar.gz
yosys-9a00980129268dee9ad3bc44468045164cff787a.tar.bz2
yosys-9a00980129268dee9ad3bc44468045164cff787a.zip
renamed LibertyParer to LibertyParser
Diffstat (limited to 'passes')
-rw-r--r--passes/techmap/dfflibmap.cc2
-rw-r--r--passes/techmap/libparse.cc10
-rw-r--r--passes/techmap/libparse.h6
3 files changed, 9 insertions, 9 deletions
diff --git a/passes/techmap/dfflibmap.cc b/passes/techmap/dfflibmap.cc
index 40caf7801..23d93353f 100644
--- a/passes/techmap/dfflibmap.cc
+++ b/passes/techmap/dfflibmap.cc
@@ -470,7 +470,7 @@ struct DfflibmapPass : public Pass {
FILE *f = fopen(liberty_file.c_str(), "r");
if (f == NULL)
log_cmd_error("Can't open liberty file `%s': %s\n", liberty_file.c_str(), strerror(errno));
- LibertyParer libparser(f);
+ LibertyParser libparser(f);
fclose(f);
find_cell(libparser.ast, "$_DFF_N_", false, false, false, false);
diff --git a/passes/techmap/libparse.cc b/passes/techmap/libparse.cc
index 2be3c586b..8f4a1a5fa 100644
--- a/passes/techmap/libparse.cc
+++ b/passes/techmap/libparse.cc
@@ -79,7 +79,7 @@ void LibertyAst::dump(FILE *f, std::string indent, std::string path, bool path_o
fprintf(f, " ;\n");
}
-int LibertyParer::lexer(std::string &str)
+int LibertyParser::lexer(std::string &str)
{
int c;
@@ -154,7 +154,7 @@ int LibertyParer::lexer(std::string &str)
return c;
}
-LibertyAst *LibertyParer::parse()
+LibertyAst *LibertyParser::parse()
{
std::string str;
@@ -219,14 +219,14 @@ LibertyAst *LibertyParer::parse()
#ifndef FILTERLIB
-void LibertyParer::error()
+void LibertyParser::error()
{
log_error("Syntax error in line %d.\n", line);
}
#else
-void LibertyParer::error()
+void LibertyParser::error()
{
fprintf(stderr, "Syntax error in line %d.\n", line);
exit(1);
@@ -611,7 +611,7 @@ int main(int argc, char **argv)
}
}
- LibertyParer parser(f);
+ LibertyParser parser(f);
if (parser.ast) {
if (flag_verilogsim)
gen_verilogsim(parser.ast);
diff --git a/passes/techmap/libparse.h b/passes/techmap/libparse.h
index 8c4a2f5ca..eff268bbb 100644
--- a/passes/techmap/libparse.h
+++ b/passes/techmap/libparse.h
@@ -39,13 +39,13 @@ namespace PASS_DFFLIBMAP
static std::set<std::string> whitelist;
};
- struct LibertyParer
+ struct LibertyParser
{
FILE *f;
int line;
LibertyAst *ast;
- LibertyParer(FILE *f) : f(f), line(1), ast(parse()) {}
- ~LibertyParer() { if (ast) delete ast; }
+ LibertyParser(FILE *f) : f(f), line(1), ast(parse()) {}
+ ~LibertyParser() { if (ast) delete ast; }
int lexer(std::string &str);
LibertyAst *parse();
void error();