summaryrefslogtreecommitdiffhomepage
path: root/ir/ident
diff options
context:
space:
mode:
authorChristoph Mallon <mallon@cs.uni-saarland.de>2014-10-19 15:14:59 +0200
committerChristoph Mallon <mallon@cs.uni-saarland.de>2014-10-19 20:21:01 +0200
commit8939d8665b28301054f898c382f032b0a32021c8 (patch)
tree8b9cbf9f81ffeb0d89ed99fec23275c6eb4fa877 /ir/ident
parent95089bd5e25c9193afc3b12c589f8c2b69725e58 (diff)
ident: Add the macro NEW_IDENT() to create an ident from a string literal.
This unifies several locally defined macros.
Diffstat (limited to 'ir/ident')
-rw-r--r--ir/ident/ident_t.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/ir/ident/ident_t.h b/ir/ident/ident_t.h
index 9f0143c..246465f 100644
--- a/ir/ident/ident_t.h
+++ b/ir/ident/ident_t.h
@@ -35,4 +35,6 @@ void firm_init_mangle(void);
void firm_finish_mangle(void);
+#define NEW_IDENT(x) new_id_from_chars((x), sizeof(x) - 1)
+
#endif