Wherever possible, replace:
- getToolChain.getArch() with <EffectiveTriple>.getArch()
- getToolChain.getTriple() with <EffectiveTriple>
On my end, I tested this patch with a clang which supports all in-tree
targets.
This is part of on ongoing effort to use effective target triples
whenever we can in the clang driver (see: [cfe-dev] Lessening the
driver's reliance on default target triples).