DmitryPolukhin added inline comments.
Comment at: lib/AST/ItaniumMangle.cpp:668
@@ -664,3 +667,3 @@
CXXNameMangler FunctionEncodingMangler(*this, FunctionEncodingStream);
// Output name of the function.
> Maybe it'd be simpler to just override the output stream here rather than
> creating a new mangler?
I'm not sure that it is simpler because it will also require substitutions
save/restore for name mangling (mangleNameWithAbiTags) to produce the same
substitutions twice (without implicate abi_tags and later with implicit
abi_tags). IMHO, it is almost identical approaches but current one is a bit
cleaner because it copies explicitly everything required from temp to outer
cfe-commits mailing list