Update new entry points to use correct namer.

This CL fixes up a merge conflict which accidentally used the Unsafe
namer instead of the Mangle namer for the temporary API to allow rolling
into Chrome.

Change-Id: Id3b932d29fe15ab64347350f5b36b3d9efeffbdf
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/37300
Auto-Submit: dan sinclair <dsinclair@chromium.org>
Reviewed-by: dan sinclair <dsinclair@chromium.org>
Commit-Queue: dan sinclair <dsinclair@chromium.org>
This commit is contained in:
dan sinclair 2021-01-11 22:07:02 +00:00 committed by Commit Bot service account
parent f6866a2ffc
commit 03f38e0cd9
3 changed files with 3 additions and 3 deletions

View File

@ -22,7 +22,7 @@ namespace hlsl {
Generator::Generator(ast::Module module) Generator::Generator(ast::Module module)
: Text(std::move(module)), : Text(std::move(module)),
namer_(std::make_unique<UnsafeNamer>(module_)), namer_(std::make_unique<MangleNamer>(module_)),
impl_(std::make_unique<GeneratorImpl>(module_, namer_.get())) {} impl_(std::make_unique<GeneratorImpl>(module_, namer_.get())) {}
Generator::Generator(ast::Module* module) Generator::Generator(ast::Module* module)

View File

@ -22,7 +22,7 @@ namespace msl {
Generator::Generator(ast::Module module) Generator::Generator(ast::Module module)
: Text(std::move(module)), : Text(std::move(module)),
namer_(std::make_unique<UnsafeNamer>(module_)), namer_(std::make_unique<MangleNamer>(module_)),
impl_(std::make_unique<GeneratorImpl>(module_, namer_.get())) {} impl_(std::make_unique<GeneratorImpl>(module_, namer_.get())) {}
Generator::Generator(ast::Module* module) Generator::Generator(ast::Module* module)

View File

@ -22,7 +22,7 @@ namespace spirv {
Generator::Generator(ast::Module module) Generator::Generator(ast::Module module)
: writer::Writer(std::move(module)), : writer::Writer(std::move(module)),
namer_(std::make_unique<UnsafeNamer>(module_)), namer_(std::make_unique<MangleNamer>(module_)),
builder_(std::make_unique<Builder>(module_, namer_.get())), builder_(std::make_unique<Builder>(module_, namer_.get())),
writer_(std::make_unique<BinaryWriter>()) {} writer_(std::make_unique<BinaryWriter>()) {}