diff options
author | 2018-11-14 16:12:43 +1100 | |
---|---|---|
committer | 2018-11-14 16:12:43 +1100 | |
commit | 5062516fb8cb52e2a8739695a27abc533da9abcd (patch) | |
tree | eb9735791ccac8a60d4d954aae405a3d4d197f32 | |
parent | a3143fafbf83868748c99aa14daf274de5549826 (diff) |
srcpos: Remove srcpos_empty
Nothing was actually using it.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
-rw-r--r-- | srcpos.c | 12 | ||||
-rw-r--r-- | srcpos.h | 7 |
2 files changed, 0 insertions, 19 deletions
@@ -197,18 +197,6 @@ void srcfile_add_search_path(const char *dirname) search_path_tail = &node->next; } -/* - * The empty source position. - */ - -struct srcpos srcpos_empty = { - .first_line = 0, - .first_column = 0, - .last_line = 0, - .last_column = 0, - .file = NULL, -}; - void srcpos_update(struct srcpos *pos, const char *text, int len) { int i; @@ -96,13 +96,6 @@ struct srcpos { } while (0) -/* - * Fictional source position used for IR nodes that are - * created without otherwise knowing a true source position. - * For example,constant definitions from the command line. - */ -extern struct srcpos srcpos_empty; - extern void srcpos_update(struct srcpos *pos, const char *text, int len); extern struct srcpos *srcpos_copy(struct srcpos *pos); extern char *srcpos_string(struct srcpos *pos); |