Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(550)

Unified Diff: pkg/compiler/lib/src/kernel/task.dart

Issue 2932883002: Add FrontendStrategy.commonElements and remove Backend.commonElements (Closed)
Patch Set: Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: pkg/compiler/lib/src/kernel/task.dart
diff --git a/pkg/compiler/lib/src/kernel/task.dart b/pkg/compiler/lib/src/kernel/task.dart
index 6b140df199f848449eba33cec0a0234cfc8060c8..9ad80ec4d78261b8767843fda7f574e3944fbae0 100644
--- a/pkg/compiler/lib/src/kernel/task.dart
+++ b/pkg/compiler/lib/src/kernel/task.dart
@@ -39,7 +39,7 @@ class KernelTask extends CompilerTask {
ir.Program buildProgram(LibraryElement library) {
var main = library.findExported(Identifiers.main);
if (main == null) {
- main = _compiler.backend.helperForMissingMain();
+ main = _compiler.frontendStrategy.commonElements.missingMain;
}
return new ir.Program(
libraries: kernel.libraryDependencies(library.canonicalUri))
« no previous file with comments | « pkg/compiler/lib/src/kernel/kernel_strategy.dart ('k') | pkg/compiler/lib/src/resolution/resolution_strategy.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698