Migrate from tint::ast::Module to tint::Program

Depends on: https://dawn-review.googlesource.com/c/tint/+/38556

Bug: tint:390
Change-Id: I12104d80370ddc1a3277770ca051cbd0992b758e
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/38522
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
Reviewed-by: dan sinclair <dsinclair@chromium.org>
Commit-Queue: Ben Clayton <bclayton@google.com>
This commit is contained in:
Ben Clayton
2021-01-26 12:24:48 +00:00
committed by Commit Bot service account
parent b3177d418e
commit e0feccacaf
9 changed files with 102 additions and 100 deletions

View File

@@ -79,17 +79,17 @@ namespace DawnSPIRVCrossFuzzer {
return 0;
}
tint::ast::Module module = parser.module();
if (!module.IsValid()) {
tint::Program program = parser.program();
if (!program.IsValid()) {
return 0;
}
tint::TypeDeterminer type_determiner(&module);
tint::TypeDeterminer type_determiner(&program);
if (!type_determiner.Determine()) {
return 0;
}
tint::writer::spirv::Generator generator(std::move(module));
tint::writer::spirv::Generator generator(&program);
if (!generator.Generate()) {
return 0;
}