Remove the context object.

This CL strips the context object out of Tint.

Change-Id: Id0dcb9c557b217c03a8d9ac08fc9fe1c799f3fdc
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/34742
Commit-Queue: dan sinclair <dsinclair@chromium.org>
Reviewed-by: Ben Clayton <bclayton@google.com>
Reviewed-by: Ryan Harrison <rharrison@chromium.org>
This commit is contained in:
dan sinclair
2020-12-07 16:03:54 +00:00
committed by Commit Bot service account
parent bd018d254d
commit c35176eadf
67 changed files with 18 additions and 223 deletions

View File

@@ -21,7 +21,6 @@
#include "src/ast/expression.h"
#include "src/ast/module.h"
#include "src/ast/statement.h"
#include "src/context.h"
#include "src/scope_stack.h"
#include "src/transform/transform.h"

View File

@@ -20,7 +20,6 @@
#include <utility>
#include "src/ast/module.h"
#include "src/context.h"
#include "src/diagnostic/diagnostic.h"
namespace tint {

View File

@@ -58,7 +58,7 @@ class VertexPullingHelper {
void InitTransform(VertexStateDescriptor vertex_state) {
EXPECT_TRUE(mod_->IsValid());
TypeDeterminer td(&ctx_, mod_.get());
TypeDeterminer td(mod_.get());
EXPECT_TRUE(td.Determine());
transform_->SetVertexState(vertex_state);
@@ -80,6 +80,7 @@ class VertexPullingHelper {
}
ast::Module* mod() { return mod_.get(); }
Manager* manager() { return manager_.get(); }
VertexPulling* transform() { return transform_; }
@@ -93,7 +94,6 @@ class VertexPullingHelper {
}
private:
Context ctx_;
std::unique_ptr<ast::Module> mod_;
std::unique_ptr<Manager> manager_;
VertexPulling* transform_;