[metadata] Fix leaks when handling a few attributes (#16675)
[mono-project.git] / mono / metadata / method-builder-ilgen-internals.h
blob642c49030c73c808a147945912c3190f0f58245f
1 /**
2 * \file
3 * Copyright 2018 Microsoft
4 * Licensed under the MIT license. See LICENSE file in the project root for full license information.
5 */
6 #ifndef __MONO_METHOD_BUILDER_ILGEN_INTERNALS_H__
7 #define __MONO_METHOD_BUILDER_ILGEN_INTERNALS_H__
9 #include "config.h"
10 #include <mono/metadata/class.h>
11 #include <mono/metadata/object-internals.h>
12 #include <mono/metadata/class-internals.h>
13 #include <mono/metadata/opcodes.h>
14 #include <mono/metadata/reflection.h>
15 #include <mono/metadata/method-builder.h>
17 /* ilgen version */
18 struct _MonoMethodBuilder {
19 MonoMethod *method;
20 gchar *name;
21 gboolean no_dup_name;
22 GList *locals_list;
23 gint locals;
24 gboolean dynamic;
25 gboolean skip_visibility;
26 gboolean init_locals;
27 guint32 code_size;
28 guint32 pos;
29 guchar *code;
30 gint num_clauses;
31 MonoExceptionClause *clauses;
32 const gchar **param_names;
33 MonoBitSet *volatile_args;
34 MonoBitSet *volatile_locals;
37 #endif