'Same as serialize_object(), but don\'t create a global variable,
simply return a literal {i8* data, i32 length} structure.'

def serialize_uncached(self, obj):

    data = pickle.dumps(obj, protocol=(-1))
    assert (len(data) < (2 ** 31))
    name = ('.const.pickledata.%s' % (id(obj) if (config.DIFF_IR == 0) else 'DIFF_IR'))
    bdata = cgutils.make_bytearray(data)
    arr = self.context.insert_unique_const(self.module, name, bdata)
    struct = ir.Constant.literal_struct([arr.bitcast(self.voidptr), ir.Constant(ir.IntType(32), arr.type.pointee.count)])
    return struct
