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:
parent
a8d9755053
commit
2dc1ef47e0
|
@ -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() {
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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>()) {}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue