[Lldb-commits] [PATCH] [IRForTarget] Strenghten handling of alternate mangling.

Sean Callanan scallanan at apple.com
Tue Apr 7 10:33:29 PDT 2015


Siva,

two things:

the reason I prefer to have it return a vector is that we could have a variety of problems, e.g. missing “const” in the debug info, and I don’t want to have special-casing everywhere for each one.
I just noticed that in your suggestion ("Is it more meaningful this way”) you dropped the reference off the std::vector<ConstString> – it should definitely be passed in by reference.

Sean


> On Apr 6, 2015, at 4:01 PM, Siva Chandra <sivachandra at google.com> wrote:
> 
> On Mon, Apr 6, 2015 at 3:32 PM, Sean Callanan <scallanan at apple.com> wrote:
> 
>> I like this; we could have the CXXLanguageRuntime return a list of
> 
>> “candidate” remangled names if you can’t find a given one, and then try
> 
>> those.
> 
>> The function would have the signature
> 
>> 
> 
>> size_t
> 
>> CXXLanguageRuntime::GetAlternateManglings(ConstString mangled_name,
> 
>> std::vector<ConstString> &alternate_names);
> 
>> 
> 
>> What do you folks think?
> 
> 
> This sounds good. I will move the meat of this change into CPPLanguageRuntime.
> 
> A question: why would there be more than one alternate candidate for a given mangled name? There would either be a full mangling (the original) or a compressed mangling (the alternate).
> 
> [There could be a case where the compressed name is the original and the full name is the alternate. But, this case would mean that the clang generated name (compressed name) was not found in the target. That is scary because it could mean that clang compiled code cannot be linked with code generated by other compilers.]
> 
> 
> http://reviews.llvm.org/D8846
> 
> EMAIL PREFERENCES
>  http://reviews.llvm.org/settings/panel/emailpreferences/
> 
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20150407/6efb5a02/attachment.html>


More information about the lldb-commits mailing list