mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-09 05:27:49 +00:00
sem::StructType remove symbol()
The name now lives on the ast::Struct. Use that instead. Bug: tint:724 Change-Id: I4ee5e9b29973e468edd8df8c5448816b36f0fca6 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/48384 Commit-Queue: Ben Clayton <bclayton@google.com> Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: Antonio Maiorano <amaiorano@google.com>
This commit is contained in:
committed by
Commit Bot service account
parent
8a8d26bbd9
commit
913a2f4b2a
@@ -556,13 +556,10 @@ class ProgramBuilder {
|
||||
return pointer(Of<T>(), storage_class);
|
||||
}
|
||||
|
||||
/// @param name the struct name
|
||||
/// @param impl the struct implementation
|
||||
/// @returns a struct pointer
|
||||
template <typename NAME>
|
||||
sem::StructType* struct_(NAME&& name, ast::Struct* impl) const {
|
||||
return builder->create<sem::StructType>(
|
||||
builder->Sym(std::forward<NAME>(name)), impl);
|
||||
sem::StructType* struct_(ast::Struct* impl) const {
|
||||
return builder->create<sem::StructType>(impl);
|
||||
}
|
||||
|
||||
private:
|
||||
@@ -1188,7 +1185,7 @@ class ProgramBuilder {
|
||||
auto sym = Sym(std::forward<NAME>(name));
|
||||
auto* impl = create<ast::Struct>(source, sym, std::move(members),
|
||||
std::move(decorations));
|
||||
auto* type = ty.struct_(sym, impl);
|
||||
auto* type = ty.struct_(impl);
|
||||
AST().AddConstructedType(type);
|
||||
return type;
|
||||
}
|
||||
@@ -1206,7 +1203,7 @@ class ProgramBuilder {
|
||||
auto sym = Sym(std::forward<NAME>(name));
|
||||
auto* impl =
|
||||
create<ast::Struct>(sym, std::move(members), std::move(decorations));
|
||||
auto* type = ty.struct_(sym, impl);
|
||||
auto* type = ty.struct_(impl);
|
||||
AST().AddConstructedType(type);
|
||||
return type;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user