aboutsummaryrefslogtreecommitdiff
path: root/tccgen.c
diff options
context:
space:
mode:
Diffstat (limited to 'tccgen.c')
-rw-r--r--tccgen.c18
1 files changed, 7 insertions, 11 deletions
diff --git a/tccgen.c b/tccgen.c
index 9602d66..0a6250c 100644
--- a/tccgen.c
+++ b/tccgen.c
@@ -344,27 +344,23 @@ static void vpushs(long long v)
vsetc(&size_type, VT_CONST, &cval);
}
-/* push long long constant */
-static void vpushll(long long v)
-{
- CValue cval;
- CType ctype;
- ctype.t = VT_LLONG;
- ctype.ref = 0;
- cval.ull = v;
- vsetc(&ctype, VT_CONST, &cval);
-}
-
/* push arbitrary 64bit constant */
void vpush64(int ty, unsigned long long v)
{
CValue cval;
CType ctype;
ctype.t = ty;
+ ctype.ref = NULL;
cval.ull = v;
vsetc(&ctype, VT_CONST, &cval);
}
+/* push long long constant */
+static inline void vpushll(long long v)
+{
+ vpush64(VT_LLONG, v);
+}
+
/* Return a static symbol pointing to a section */
ST_FUNC Sym *get_sym_ref(CType *type, Section *sec, unsigned long offset, unsigned long size)
{