[ModuleInterface] Add llvm::Triple overload of setTargetTriple.

This commit is contained in:
Graydon Hoare
2018-10-05 13:57:49 -07:00
parent 86cd6ed909
commit 49feb51fff
2 changed files with 6 additions and 1 deletions

View File

@@ -59,7 +59,11 @@ void CompilerInvocation::setRuntimeResourcePath(StringRef Path) {
}
void CompilerInvocation::setTargetTriple(StringRef Triple) {
LangOpts.setTarget(llvm::Triple(Triple));
setTargetTriple(llvm::Triple(Triple));
}
void CompilerInvocation::setTargetTriple(const llvm::Triple &Triple) {
LangOpts.setTarget(Triple);
updateRuntimeLibraryPath(SearchPathOpts, LangOpts.Target);
}