compiler: specify safe methods in config

This commit is contained in:
Evgenii Stratonikov 2020-12-10 17:55:52 +03:00
parent d7194e4da5
commit 2341ae0c53
5 changed files with 16 additions and 1 deletions

View file

@ -433,6 +433,12 @@ func (di *DebugInfo) ConvertToManifest(o *Options) (*manifest.Manifest, error) {
if err != nil {
return nil, err
}
for i := range o.SafeMethods {
if mMethod.Name == o.SafeMethods[i] {
mMethod.Safe = true
break
}
}
methods = append(methods, mMethod)
}
}