From 891e4b5b0d16a537e6d1ca0ecbc1ac3bafccecef Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Thu, 5 Dec 2013 13:26:17 +0100 Subject: Keep strings as strings in const ternary and concat --- frontends/ast/ast.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'frontends/ast/ast.h') diff --git a/frontends/ast/ast.h b/frontends/ast/ast.h index e9dfa5ac..f8e27927 100644 --- a/frontends/ast/ast.h +++ b/frontends/ast/ast.h @@ -143,7 +143,7 @@ namespace AST // node content - most of it is unused in most node types std::string str; std::vector bits; - bool is_input, is_output, is_reg, is_signed, range_valid; + bool is_input, is_output, is_reg, is_signed, is_string, range_valid; int port_id, range_left, range_right; uint32_t integer; @@ -213,6 +213,7 @@ namespace AST // helper functions for creating AST nodes for constants static AstNode *mkconst_int(uint32_t v, bool is_signed, int width = 32); static AstNode *mkconst_bits(const std::vector &v, bool is_signed); + static AstNode *mkconst_str(const std::vector &v); static AstNode *mkconst_str(const std::string &str); // helper function for creating sign-extended const objects -- cgit v1.2.3