tint/sem/constant.h: Remove #include to program_builder.h

This pulls in the entire world, and isn't needed from this header.
Remove it. Fix all the places that were transtively depending on
program_builder.h's includes.

Change-Id: I5209dcd387fb47dd6744a3d676997338b8f45473
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/95040
Reviewed-by: dan sinclair <dsinclair@google.com>
Kokoro: Kokoro <noreply+kokoro@google.com>
Commit-Queue: Ben Clayton <bclayton@google.com>
Commit-Queue: Ben Clayton <bclayton@chromium.org>
This commit is contained in:
Ben Clayton
2022-06-29 10:58:41 +00:00
committed by Dawn LUCI CQ
parent f1060adbca
commit 72876c14c3
15 changed files with 73 additions and 3 deletions

View File

@@ -17,6 +17,7 @@
#include <vector>
#include "src/tint/ast/call_expression.h"
#include "src/tint/sem/builtin.h"
#include "src/tint/sem/expression.h"

View File

@@ -20,8 +20,12 @@
#include <variant>
#include <vector>
#include "src/tint/program_builder.h"
#include "src/tint/sem/type.h"
#include "src/tint/number.h"
// Forward declarations
namespace tint::sem {
class Type;
}
namespace tint::sem {

View File

@@ -14,6 +14,8 @@
#include "src/tint/sem/index_accessor_expression.h"
#include "src/tint/ast/index_accessor_expression.h"
#include <utility>
TINT_INSTANTIATE_TYPEINFO(tint::sem::IndexAccessorExpression);

View File

@@ -17,7 +17,9 @@
#include <utility>
#include "src/tint/ast/identifier_expression.h"
#include "src/tint/ast/parameter.h"
#include "src/tint/ast/variable.h"
#include "src/tint/sem/pointer.h"
TINT_INSTANTIATE_TYPEINFO(tint::sem::Variable);
TINT_INSTANTIATE_TYPEINFO(tint::sem::GlobalVariable);

View File

@@ -27,6 +27,7 @@
// Forward declarations
namespace tint::ast {
class IdentifierExpression;
class Parameter;
class Variable;
} // namespace tint::ast
namespace tint::sem {