There is a suspicious fallthrough at ppc64 which on first glance seems unlikely to be right, but also seems unlikely to cause a problem, and remains as-is but with a comment. It seems like it should have resembled the pattern of the cases above it:
if (test) return "/some/path"; return TargetTriple.str();
whereas it actually fell into the ppc64le case.
I am not sure what the intent was, so this patch adds an explicit "// Fallthrough" comment.
Additionally there is a uniform catch-all case at the end rather than having every architecture recognize both a special case (or two) and the general case.