Chromium Code Reviews| Index: pkg/compiler/lib/src/compiler.dart |
| diff --git a/pkg/compiler/lib/src/compiler.dart b/pkg/compiler/lib/src/compiler.dart |
| index cf9ca73809dc49c4bd8c795f93aaf0cde1d40897..e6738a4e24e5c542dfca6989fea7161be6acdead 100644 |
| --- a/pkg/compiler/lib/src/compiler.dart |
| +++ b/pkg/compiler/lib/src/compiler.dart |
| @@ -132,6 +132,8 @@ import 'universe/selector.dart' show |
| Selector; |
| import 'universe/universe.dart' show |
| Universe; |
| +import 'universe/use.dart' show |
| + StaticUse; |
| import 'universe/world_impact.dart' show |
| WorldImpact; |
| import 'util/util.dart' show |
| @@ -905,7 +907,7 @@ abstract class Compiler { |
| parameter); |
| mainFunction = backend.helperForMainArity(); |
| // Don't warn about main not being used: |
| - enqueuer.resolution.registerStaticUse(main); |
| + enqueuer.resolution.registerStaticUse(new StaticUse.foreignUse(main)); |
|
sigurdm
2015/11/02 11:19:56
?
Johnni Winther
2015/11/02 13:23:25
The registration itself is a hack.
|
| }); |
| } |
| } |