This is an archive of the discontinued LLVM Phabricator instance.

[clang] [MinGW] Rename the 'Arch' member to 'SysrootName'. NFC.
ClosedPublic

Authored by mstorsjo on Oct 24 2021, 12:26 PM.

Details

Summary

This string isn't a plain architecture name, but contains the whole
subdir name used for the sysroot, which often is equal to the target
triple.

Diff Detail

Event Timeline

mstorsjo requested review of this revision.Oct 24 2021, 12:26 PM
mstorsjo created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptOct 24 2021, 12:26 PM
MaskRay accepted this revision.Oct 27 2021, 9:57 AM

How is this different from clang::driver::Driver::SysRoot?

From SysrootName + "/sys-root" looks like the sys-root directory is the sysroot? Perhaps there is a better way describing SysrootName but I cannot think of it...
SysrootName may be good enough.

This revision is now accepted and ready to land.Oct 27 2021, 9:57 AM

How is this different from clang::driver::Driver::SysRoot?

From SysrootName + "/sys-root" looks like the sys-root directory is the sysroot? Perhaps there is a better way describing SysrootName but I cannot think of it...
SysrootName may be good enough.

Yeah, it’s kinda vague what it is. It’s mainly a triple, except that it also can be “mingw32” or similar, in some cases. I guess it could be SubdirName too, or something related to that.

Making the word Subdir part of the variable name LG.

mstorsjo updated this revision to Diff 382798.Oct 27 2021, 2:31 PM

Renamed the variable to SubdirName. Will push tomorrow.

MaskRay accepted this revision.Oct 27 2021, 2:35 PM