This is an archive of the discontinued LLVM Phabricator instance.

[Driver] Replace more uses of default triples with effective triples (NFCI)
AcceptedPublic

Authored by vsk on Jul 28 2016, 3:17 PM.

Details

Summary

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).

Diff Detail

Event Timeline

vsk updated this revision to Diff 66035.Jul 28 2016, 3:17 PM
vsk retitled this revision from to [Driver] Replace more uses of default triples with effective triples (NFCI).
vsk updated this object.
vsk added reviewers: echristo, dexonsmith.
vsk added a subscriber: cfe-commits.
echristo accepted this revision.Aug 3 2016, 11:22 PM
echristo edited edge metadata.

OK.

-eric

This revision is now accepted and ready to land.Aug 3 2016, 11:22 PM

Looks like patch was not committed.