<div dir="ltr"><div>Mangled names can be long indeed, but pretty-printed types are also long. I can evaluate effect on size on clang codebase itself.</div><div><br></div><div>If you disable RTTI, than obviously you can't use it. So if RTTI is disabled, we can disable mangled names in DWARF. Clang is compiled without standard C++ RTTI because it has it's own RTTI. In general, however, many libraries use standard RTTI. </div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2018-03-02 17:43 GMT-08:00  <span dir="ltr"><<a href="mailto:paul.robinson@sony.com" target="_blank">paul.robinson@sony.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">> Currently what debugger has to do is to demangle RTTI name and try to<br>
> match it to DW_AT_name attribute to find type. As you can see it does<br>
> not work for any of 3 examples.<br>
><br>
> I've asked about the problem on G++ maillist, and one of the proposed<br>
> solutions is to emit DW_AT_linkage_name for types. <br>
><br>
> Can this solution be also implemented in LLVM? <br>
<br>
</span>It could, but mangled names can be very long and we need to consider<br>
whether the additional size cost is worth it under various conditions.<br>
For example, does this type matching work when a program is compiled<br>
with `-fno-rtti`?  (Clang itself is compiled this way by default.)<br>
Thanks,<br>
--paulr<br>
<br>
</blockquote></div><br></div>