Switch default to the MangleNamer.

This Cl updates all of the generators and the inspector to use the
mangle namer by default.

Change-Id: Id6811d76bf2475a2c2a2864fb8fc0f43e95a6e65
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/36944
Reviewed-by: Ryan Harrison <rharrison@chromium.org>
This commit is contained in:
dan sinclair 2021-01-11 16:24:32 +00:00 committed by dan sinclair
parent a8d9755053
commit 2dc1ef47e0
4 changed files with 4 additions and 4 deletions

View File

@ -48,7 +48,7 @@ Inspector::Inspector(ast::Module& module, Namer* namer)
Inspector::Inspector(ast::Module& module) Inspector::Inspector(ast::Module& module)
: module_(module), : module_(module),
namer_(new UnsafeNamer(&module)), namer_(new MangleNamer(&module)),
namer_is_owned_(true) {} namer_is_owned_(true) {}
Inspector::~Inspector() { Inspector::~Inspector() {

View File

@ -27,7 +27,7 @@ Generator::Generator(ast::Module module)
Generator::Generator(ast::Module* module) Generator::Generator(ast::Module* module)
: Text(module), : Text(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() = default; Generator::~Generator() = default;

View File

@ -27,7 +27,7 @@ Generator::Generator(ast::Module module)
Generator::Generator(ast::Module* module) Generator::Generator(ast::Module* module)
: Text(module), : Text(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() = default; Generator::~Generator() = default;

View File

@ -28,7 +28,7 @@ Generator::Generator(ast::Module module)
Generator::Generator(ast::Module* module) Generator::Generator(ast::Module* module)
: writer::Writer(module), : writer::Writer(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>()) {}