This is an archive of the discontinued LLVM Phabricator instance.

fix symbol printing on windows
ClosedPublic

Authored by vtjnash on Sep 3 2020, 10:28 AM.

Details

Summary

Similar to MCSymbol::print in 3d6c8ebb584375d01b1acead4c2056b3f0c501fc
(llvm-svn: 81682, PR4966), these symbols may need to be quoted to be handled by
the linker correctly.

Diff Detail

Event Timeline

vtjnash created this revision.Sep 3 2020, 10:28 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 3 2020, 10:28 AM
vtjnash requested review of this revision.Sep 3 2020, 10:28 AM
vtjnash added a subscriber: Restricted Project.
compnerd accepted this revision.Sep 4 2020, 9:06 PM

LGTM with the name change.

llvm/lib/IR/Mangler.cpp
188

I think that isAcceptableChar is very ambiguous. It can also be difffernent in different contexts. It would be better to rename this to be more precise. Perhaps canBeUnquotedInDirective?

This revision is now accepted and ready to land.Sep 4 2020, 9:06 PM
vtjnash updated this revision to Diff 293469.Sep 22 2020, 8:40 AM

rename helper functions to canBeUnquotedInDirective

vtjnash updated this revision to Diff 293471.Sep 22 2020, 8:41 AM

fixing commit diff

This revision was automatically updated to reflect the committed changes.