I submitted something like this to cfe-commits a few weeks ago, but I guess in the release crunch it got lost. Here’s another crack at it here, as I stopped watching the commits traffic, as it got too heavy.
It’s another pass at refining Targets.cpp for Windows targets, revised for the current repository. From my original email:
Hi. This is my third time posting this. Could someone spare some time to check it out before it gets stale again.
One concern, however. Because a recent change elsewhere made access to the original triple string unavailable, further information about the processor is lost. I.e. x86 covers i386, i486, etc. Is it important to preserve this? I.e. perhaps as separate CPU types or perhaps as a CPU subtype?
I could have sworn I replied at some point with comments on the triple
part, but I cannot find them now.
I don't think the triple changes are correct. These are not valid
triples, and we shouldn't manufacture new triples. Why was this part
necessary?
I think the Win?? triples should just map to the
VisualStudioWindowsX86... targets, does this make sense? If so, can
you change this to not require the LLVM triple changes.