compiler: specify safe methods in config
This commit is contained in:
parent
d7194e4da5
commit
2341ae0c53
5 changed files with 16 additions and 1 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue