summaryrefslogtreecommitdiff
path: root/src/format/dex
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2016-05-13 19:59:41 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2016-05-13 19:59:41 (GMT)
commited5541867f94b36e701708757a0489298fe77135 (patch)
tree56cc80141354d1d955a6ad9599e3bc2ab7366ad7 /src/format/dex
parent3d28b198f12671e4933890a4b79933d064593ce3 (diff)
Inserted symbols and routines using an optimized 100 times faster method.
Diffstat (limited to 'src/format/dex')
-rw-r--r--src/format/dex/class.c4
-rwxr-xr-xsrc/format/dex/dex.c2
2 files changed, 2 insertions, 4 deletions
diff --git a/src/format/dex/class.c b/src/format/dex/class.c
index 02ac19d..37fdd04 100644
--- a/src/format/dex/class.c
+++ b/src/format/dex/class.c
@@ -233,7 +233,7 @@ GDexClass *g_dex_class_new(GDexFormat *format, const class_def_item *def)
symbol = g_binary_symbol_new(STP_ROUTINE);
g_binary_symbol_attach_routine(symbol, routine);
- _g_binary_format_add_symbol(G_BIN_FORMAT(format), symbol, false);
+ g_binary_format_add_symbol(G_BIN_FORMAT(format), symbol);
}
@@ -256,7 +256,7 @@ GDexClass *g_dex_class_new(GDexFormat *format, const class_def_item *def)
symbol = g_binary_symbol_new(STP_ROUTINE);
g_binary_symbol_attach_routine(symbol, routine);
- _g_binary_format_add_symbol(G_BIN_FORMAT(format), symbol, false);
+ g_binary_format_add_symbol(G_BIN_FORMAT(format), symbol);
}
diff --git a/src/format/dex/dex.c b/src/format/dex/dex.c
index 51938f9..2897ee3 100755
--- a/src/format/dex/dex.c
+++ b/src/format/dex/dex.c
@@ -273,8 +273,6 @@ GBinFormat *g_dex_format_new(GBinContent *content, GExeFormat *parent)
if (!load_all_dex_classes(result))
goto gdfn_error;
- g_binary_format_sort_symbols(base);
-
if (!g_binary_format_complete_loading(base))
goto gdfn_error;