diff options
author | Marek Safar <marek.safar@gmail.com> | 2019-12-29 16:14:31 +0300 |
---|---|---|
committer | Larry Ewing <lewing@microsoft.com> | 2020-01-02 23:24:44 +0300 |
commit | c9036e755580c96a984daad55ff8dec11ff46b44 (patch) | |
tree | 128f77c9f1da96bf74b1b65f50469d718caab439 /mcs/class/Mono.CompilerServices.SymbolWriter | |
parent | 33ca3d33e1994cabf9f9b19034624a3495bbc9cb (diff) |
Cleanup a few dependencies to reduce wasm bcl size
Diffstat (limited to 'mcs/class/Mono.CompilerServices.SymbolWriter')
-rw-r--r-- | mcs/class/Mono.CompilerServices.SymbolWriter/SymbolWriterImpl.cs | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/mcs/class/Mono.CompilerServices.SymbolWriter/SymbolWriterImpl.cs b/mcs/class/Mono.CompilerServices.SymbolWriter/SymbolWriterImpl.cs index 0b25cd7cf5e..930a262187f 100644 --- a/mcs/class/Mono.CompilerServices.SymbolWriter/SymbolWriterImpl.cs +++ b/mcs/class/Mono.CompilerServices.SymbolWriter/SymbolWriterImpl.cs @@ -52,8 +52,6 @@ namespace Mono.CompilerServices.SymbolWriter #if !CECIL && !MOBILE ModuleBuilder mb; - delegate Guid GetGuidFunc (ModuleBuilder mb); - GetGuidFunc get_guid_func; public SymbolWriterImpl (ModuleBuilder mb) { @@ -62,16 +60,7 @@ namespace Mono.CompilerServices.SymbolWriter public void Close () { - MethodInfo mi = typeof (ModuleBuilder).GetMethod ( - "Mono_GetGuid", - BindingFlags.Static | BindingFlags.NonPublic); - if (mi == null) - return; - - get_guid_func = (GetGuidFunc) System.Delegate.CreateDelegate ( - typeof (GetGuidFunc), mi); - - msw.WriteSymbolFile (get_guid_func (mb)); + msw.WriteSymbolFile (mb.ModuleVersionId); } #else Guid guid; |