Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorAleksey Kliger <aleksey@xamarin.com>2017-02-28 01:35:39 +0300
committerAleksey Kliger <aleksey@xamarin.com>2017-03-14 18:39:03 +0300
commita21fae83b7054bf29a5524ffc84364f2f2f4e5b5 (patch)
tree9305b969ae3a560eced7df0cd7e0057d2b78f23d /tools
parent092f4c6ac0f349f72e1ea95c7c7bca79a3390394 (diff)
[runtime] Mark mono_assembly_open and mono_assembly_open_full external only
Runtime should use mono_assembly_open_predicate
Diffstat (limited to 'tools')
-rw-r--r--tools/pedump/pedump.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/pedump/pedump.c b/tools/pedump/pedump.c
index 6ae2a1e1e49..072b535f299 100644
--- a/tools/pedump/pedump.c
+++ b/tools/pedump/pedump.c
@@ -21,7 +21,7 @@
#include <mono/metadata/debug-helpers.h>
#include <mono/metadata/tokentype.h>
#include <mono/metadata/appdomain.h>
-#include <mono/metadata/assembly.h>
+#include <mono/metadata/assembly-internals.h>
#include <mono/metadata/metadata-internals.h>
#include <mono/metadata/class-internals.h>
#include <mono/metadata/verify-internals.h>
@@ -523,7 +523,7 @@ try_load_from (MonoAssembly **assembly, const gchar *path1, const gchar *path2,
*assembly = NULL;
fullpath = g_build_filename (path1, path2, path3, path4, NULL);
if (g_file_test (fullpath, G_FILE_TEST_IS_REGULAR))
- *assembly = mono_assembly_open_full (fullpath, NULL, refonly);
+ *assembly = mono_assembly_open_predicate (fullpath, refonly, FALSE, NULL, NULL, NULL);
g_free (fullpath);
return (*assembly != NULL);
@@ -727,7 +727,7 @@ main (int argc, char *argv [])
mono_verifier_set_mode (verifier_mode);
- assembly = mono_assembly_open (file, NULL);
+ assembly = mono_assembly_open_predicate (file, FALSE, FALSE, NULL, NULL, NULL);
/*fake an assembly for netmodules so the verifier works*/
if (!assembly && (image = mono_image_open (file, &status)) && image->tables [MONO_TABLE_ASSEMBLY].rows == 0) {
assembly = g_new0 (MonoAssembly, 1);