This is an archive of the discontinued LLVM Phabricator instance.

[Demangle] Support demangling Swift calling convention in MS demangler.
ClosedPublic

Authored by varungandhi-apple on Jan 20 2021, 8:41 AM.

Details

Summary

Previously, Clang was able to mangle the Swift calling
convention but 'MicrosoftDemangle.cpp' was not able to demangle it.

Diff Detail

Event Timeline

varungandhi-apple requested review of this revision.Jan 20 2021, 8:41 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptJan 20 2021, 8:41 AM
compnerd accepted this revision.Jan 20 2021, 1:54 PM
compnerd added a subscriber: rnk.

Perhaps @rnk has any thoughts, but this seems very straightforward.

Thanks for fixing this!

llvm/test/Demangle/ms-mangle.test
342

Would be nice if we can have a space after the attribute in the printed output.

This revision is now accepted and ready to land.Jan 20 2021, 1:54 PM
rnk accepted this revision.Jan 20 2021, 2:16 PM

Add extra space for better readability, as suggested by @compnerd.

varungandhi-apple marked an inline comment as done.Jan 20 2021, 4:02 PM

I've fixed this by including an additional space in the string instead of using a method like outputSpaceIfNecessary; (1) that method doesn't work as it is and I think changing it for this purpose is not appropriate and (2) we probably want the space there unconditionally anyways.