mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-09 05:27:49 +00:00
Remove sem::Alias
With the parsers now using ast::Types, nothing should be producing these any more. This change also removes Resolver::Canonical(), which is now unneeded as there are no sem::Aliases to remove. Bug: tint:724 Change-Id: I0c1a49f49372c1fcc37864502f07c5c76328d471 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/50304 Commit-Queue: Ben Clayton <bclayton@google.com> Reviewed-by: James Price <jrprice@google.com> Reviewed-by: Antonio Maiorano <amaiorano@google.com>
This commit is contained in:
committed by
Commit Bot service account
parent
cbbe576415
commit
a34fa0ecb7
@@ -60,7 +60,6 @@
|
||||
#include "src/program.h"
|
||||
#include "src/program_id.h"
|
||||
#include "src/sem/access_control_type.h"
|
||||
#include "src/sem/alias_type.h"
|
||||
#include "src/sem/array.h"
|
||||
#include "src/sem/bool_type.h"
|
||||
#include "src/sem/depth_texture_type.h"
|
||||
@@ -682,13 +681,10 @@ class ProgramBuilder {
|
||||
/// @param type the alias type
|
||||
/// @returns the alias pointer
|
||||
template <typename NAME>
|
||||
typ::Alias alias(NAME&& name, typ::Type type) const {
|
||||
ast::Alias* alias(NAME&& name, typ::Type type) const {
|
||||
type = MaybeCreateTypename(type);
|
||||
auto sym = builder->Sym(std::forward<NAME>(name));
|
||||
return {
|
||||
type.ast ? builder->create<ast::Alias>(sym, type) : nullptr,
|
||||
type.sem ? builder->create<sem::Alias>(sym, type) : nullptr,
|
||||
};
|
||||
return builder->create<ast::Alias>(sym, type);
|
||||
}
|
||||
|
||||
/// Creates an alias type
|
||||
@@ -697,13 +693,10 @@ class ProgramBuilder {
|
||||
/// @param type the alias type
|
||||
/// @returns the alias pointer
|
||||
template <typename NAME>
|
||||
typ::Alias alias(const Source& source, NAME&& name, typ::Type type) const {
|
||||
ast::Alias* alias(const Source& source, NAME&& name, typ::Type type) const {
|
||||
type = MaybeCreateTypename(type);
|
||||
auto sym = builder->Sym(std::forward<NAME>(name));
|
||||
return {
|
||||
type.ast ? builder->create<ast::Alias>(source, sym, type) : nullptr,
|
||||
type.sem ? builder->create<sem::Alias>(sym, type) : nullptr,
|
||||
};
|
||||
return builder->create<ast::Alias>(source, sym, type);
|
||||
}
|
||||
|
||||
/// Creates an access control qualifier type
|
||||
|
||||
Reference in New Issue
Block a user