aboutsummaryrefslogtreecommitdiff
path: root/il-gen.c
diff options
context:
space:
mode:
authorgus knight <waddlesplash@gmail.com>2015-07-27 12:43:40 -0400
committergus knight <waddlesplash@gmail.com>2015-07-27 12:43:40 -0400
commit41031221c82384f40b5664b5e12b1a81eefcdfe6 (patch)
tree4a719656f75bb114a980769eea033cc9839f452c /il-gen.c
parent5e67f24e6b1566c4b1ba4b79d97b6eac150390e7 (diff)
downloadtinycc-41031221c82384f40b5664b5e12b1a81eefcdfe6.tar.gz
tinycc-41031221c82384f40b5664b5e12b1a81eefcdfe6.tar.bz2
Trim trailing spaces everywhere.
Diffstat (limited to 'il-gen.c')
-rw-r--r--il-gen.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/il-gen.c b/il-gen.c
index cf3aff5..a4170b0 100644
--- a/il-gen.c
+++ b/il-gen.c
@@ -1,6 +1,6 @@
/*
* CIL code generator for TCC
- *
+ *
* Copyright (c) 2002 Fabrice Bellard
*
* This library is free software; you can redistribute it and/or
@@ -112,7 +112,7 @@ static void init_outfile(void)
{
if (!il_outfile) {
il_outfile = stdout;
- fprintf(il_outfile,
+ fprintf(il_outfile,
".assembly extern mscorlib\n"
"{\n"
".ver 1:0:2411:0\n"
@@ -149,7 +149,7 @@ static void out_opi(int op, int c)
}
/* XXX: not complete */
-static void il_type_to_str(char *buf, int buf_size,
+static void il_type_to_str(char *buf, int buf_size,
int t, const char *varstr)
{
int bt;
@@ -301,12 +301,12 @@ void load(int r, SValue *sv)
out_op(IL_OP_LDIND_U2);
else
out_op(IL_OP_LDIND_I4);
- }
+ }
} else {
if (v == VT_CONST) {
/* XXX: handle globals */
if (fc >= -1 && fc <= 8) {
- out_op(IL_OP_LDC_I4_M1 + fc + 1);
+ out_op(IL_OP_LDC_I4_M1 + fc + 1);
} else {
out_opi(IL_OP_LDC_I4, fc);
}
@@ -430,10 +430,10 @@ void gfunc_prolog(int t)
/* XXX: cannot do better now */
fprintf(il_outfile, " .maxstack %d\n", NB_REGS);
fprintf(il_outfile, " .locals (int32, int32, int32, int32, int32, int32, int32, int32)\n");
-
+
if (!strcmp(funcname, "main"))
fprintf(il_outfile, " .entrypoint\n");
-
+
sym = sym_find((unsigned)t >> VT_STRUCT_SHIFT);
func_call = sym->r;