harec

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 45cabcbe94241296bf890a9a64798baecd7c8c9d
parent d7f8bc5dde6f51f8b1f869985202000907c406b3
Author: Sebastian <sebastian@sebsite.pw>
Date:   Sat,  9 Apr 2022 14:37:14 -0400

gen: remove mkrttype

Signed-off-by: Sebastian <sebastian@sebsite.pw>

Diffstat:
Minclude/gen.h | 1-
Msrc/genutil.c | 11-----------
2 files changed, 0 insertions(+), 12 deletions(-)

diff --git a/include/gen.h b/include/gen.h @@ -92,7 +92,6 @@ struct qbe_value mkcopy(struct gen_context *ctx, struct qbe_value mkqtmp(struct gen_context *ctx, const struct qbe_type *qtype, const char *fmt); struct qbe_value mkrtfunc(struct gen_context *ctx, const char *name); -char *mkrttype(enum type_storage storage); struct qbe_value mklabel(struct gen_context *ctx, struct qbe_statement *stmt, const char *fmt); void branch_copyresult(struct gen_context *ctx, struct gen_value result, diff --git a/src/genutil.c b/src/genutil.c @@ -85,17 +85,6 @@ mkrtfunc(struct gen_context *ctx, const char *name) }; } -char * -mkrttype(enum type_storage storage) -{ - int n = snprintf(NULL, 0, "rt.builtin_%s", - type_storage_unparse(storage)); - char *str = xcalloc(1, n + 1); - snprintf(str, n + 1, "rt.builtin_%s", - type_storage_unparse(storage)); - return str; -} - struct qbe_value mklabel(struct gen_context *ctx, struct qbe_statement *stmt, const char *fmt) {