This is an archive of the discontinued LLVM Phabricator instance.

[MS Demangler] Print public:, protected:, private: if set in FunctionClass or a variable's StorageClass.
ClosedPublic

Authored by thakis on Nov 11 2018, 12:23 PM.

Details

Summary

undname prints them, and the information is in the decorated name, so we probably shouldn't lose it when undecorating.

I spot-checked a few of the funnier-looking outputs, and undname has the same output.

Diff Detail

Repository
rL LLVM

Event Timeline

thakis created this revision.Nov 11 2018, 12:23 PM
thakis added inline comments.Nov 11 2018, 12:24 PM
lib/Demangle/MicrosoftDemangleNodes.cpp
386 ↗(On Diff #173570)

(I'm reordering this to make the order in the function match the order of the FC_ enum entries.)

thakis updated this revision to Diff 173574.Nov 11 2018, 1:00 PM
thakis retitled this revision from [MS Demangler] Print public:, protected:, private: if set in FunctionClass. to [MS Demangler] Print public:, protected:, private: if set in FunctionClass or a variable's StorageClass..

variables too

zturner accepted this revision.Nov 13 2018, 11:30 AM
This revision is now accepted and ready to land.Nov 13 2018, 11:30 AM
This revision was automatically updated to reflect the committed changes.