This affects other tools so the previous C++ API has been retained as a
deprecated function for the moment. In-tree tools will be updated with a
trivial patch when this is committed to avoid breaking -Werror builds.
This continues the patch series to eliminate StringRef forms of GNU triples
from the internals of LLVM that began in r239036.
Depends on D10362.