diff options
author | Mike Voorhees <michaelv@unity3d.com> | 2017-03-15 21:59:16 +0300 |
---|---|---|
committer | Marek Safar <marek.safar@gmail.com> | 2017-03-20 15:13:51 +0300 |
commit | 83277670d925055360888eb9556804d53c5e43da (patch) | |
tree | 272ed4e700614f4ac6ed6b9012a3f018f9ef5bf3 /linker | |
parent | de36b7a235c1cc36e40127c566f8e58da0c13acd (diff) |
AddStepBefore
Diffstat (limited to 'linker')
-rw-r--r-- | linker/Mono.Linker/Pipeline.cs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/linker/Mono.Linker/Pipeline.cs b/linker/Mono.Linker/Pipeline.cs index 7ae07d24f..875f9bd12 100644 --- a/linker/Mono.Linker/Pipeline.cs +++ b/linker/Mono.Linker/Pipeline.cs @@ -65,6 +65,16 @@ namespace Mono.Linker { throw new InvalidOperationException (msg); } + public void AddStepBefore (IStep target, IStep step) + { + for (int i = 0; i < _steps.Count; i++) { + if (_steps [i] == target) { + _steps.Insert (i, step); + return; + } + } + } + public void ReplaceStep (Type target, IStep step) { AddStepBefore (target, step); |