summaryrefslogtreecommitdiffstats
path: root/llgo/third_party/gotools/go/pointer/api.go
diff options
context:
space:
mode:
Diffstat (limited to 'llgo/third_party/gotools/go/pointer/api.go')
-rw-r--r--llgo/third_party/gotools/go/pointer/api.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/llgo/third_party/gotools/go/pointer/api.go b/llgo/third_party/gotools/go/pointer/api.go
index b4acb24a5cf..6042aa5a467 100644
--- a/llgo/third_party/gotools/go/pointer/api.go
+++ b/llgo/third_party/gotools/go/pointer/api.go
@@ -21,6 +21,12 @@ type Config struct {
// Mains contains the set of 'main' packages to analyze
// Clients must provide the analysis with at least one
// package defining a main() function.
+ //
+ // Non-main packages in the ssa.Program that are not
+ // dependencies of any main package may still affect the
+ // analysis result, because they contribute runtime types and
+ // thus methods.
+ // TODO(adonovan): investigate whether this is desirable.
Mains []*ssa.Package
// Reflection determines whether to handle reflection
OpenPOWER on IntegriCloud