This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [C++ Patch and pubnames 2/2] Adjust c decl pretty printer to match demangler (issue6195056)


>> A suggestion: Make dwarf_name call the demangler, and then a (new?) a
>> function that converts a mangled decl to a human-readable string. In
>> any case, the pretty-printer does a lot of stuff that is mostly
>> useless for just printing a declaration (translation, wrapping, etc.).
>>
>> Bonus point if all GNU toolchain program use the same functions for
>> demangling and undemagling (because I guess they actually don't, no?)
>>
>> I guess it cannot be so easy, so I apologize in advance for saying nonsense.
>
> It makes sense; and I don't think it is as complicated as it might sound.

dwarf_name takes a tree; the demangler takes a mangled name. We don't
have mangled names for many of the names we want to enter into the
pubnames table.

-cary


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]