This is an archive of the discontinued LLVM Phabricator instance.

[PATCH 1/2] [Driver] Make Driver::DefaultTargetTriple private (NFCI)
ClosedPublic

Authored by vsk on Jul 12 2016, 4:52 PM.

Details

Summary

The clang driver knows about two kinds of target triples: default and
effective. Default triples are needed to get ToolChains. ToolChains can
then be used to determine more specific effective triples.

Inconsistent use of two different kinds of target triples leads to
inconsistent error reporting and wasted computation (n.b that effective
triples are not cached).

Ideally, default triples would only be used as a means of getting
effective triples. Make Driver::DefaultTargetTriple private in the hopes
of discouraging further use of default triples.

Diff Detail

Event Timeline

vsk updated this revision to Diff 63756.Jul 12 2016, 4:52 PM
vsk retitled this revision from to [PATCH 1/2] [Driver] Make Driver::DefaultTargetTriple private (NFCI).
vsk updated this object.
vsk added a reviewer: dexonsmith.
vsk added a subscriber: cfe-commits.
dexonsmith edited edge metadata.Jul 12 2016, 5:42 PM
dexonsmith added a subscriber: dexonsmith.

If no one is using it, making it private is obvious goodness. LGTM.

This revision was automatically updated to reflect the committed changes.