diff options
author | Mike Voorhees <michaelv@unity3d.com> | 2017-03-15 22:49:37 +0300 |
---|---|---|
committer | Marek Safar <marek.safar@gmail.com> | 2017-04-27 17:45:31 +0300 |
commit | 501558b7988ddcac37b8f10c4fb90217f59417a5 (patch) | |
tree | 6383a35046ea22241d394cc2fdb6e266a460a329 /linker | |
parent | 1942effd370685da559f45614ca9c1376094e9fe (diff) |
Support a custom annotation store
Diffstat (limited to 'linker')
-rw-r--r-- | linker/Mono.Linker/LinkContext.cs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/linker/Mono.Linker/LinkContext.cs b/linker/Mono.Linker/LinkContext.cs index 6a4ae5d8d..c0c0b6200 100644 --- a/linker/Mono.Linker/LinkContext.cs +++ b/linker/Mono.Linker/LinkContext.cs @@ -121,17 +121,18 @@ namespace Mono.Linker { : this(pipeline, resolver, new ReaderParameters { AssemblyResolver = resolver - }) + }, + new AnnotationStore ()) { } - public LinkContext (Pipeline pipeline, AssemblyResolver resolver, ReaderParameters readerParameters) + public LinkContext (Pipeline pipeline, AssemblyResolver resolver, ReaderParameters readerParameters, AnnotationStore annotations) { _pipeline = pipeline; _resolver = resolver; _actions = new Dictionary<string, AssemblyAction> (); _parameters = new Dictionary<string, string> (); - _annotations = new AnnotationStore (); + _annotations = annotations; _readerParameters = readerParameters; } |