Don't mention a command line option in an error.

The program using this code may not have it.

Patch by Wilfred Hughes.

llvm-svn: 259106
This commit is contained in:
Rafael Espindola 2016-01-28 22:55:45 +00:00
parent 2d8a2aa60a
commit 26e65817fa
1 changed files with 1 additions and 2 deletions

View File

@ -73,8 +73,7 @@ const Target *TargetRegistry::lookupTarget(const std::string &TT,
auto I = std::find_if(targets().begin(), targets().end(), ArchMatch);
if (I == targets().end()) {
Error = "No available targets are compatible with this triple, "
"see -version for the available targets.";
Error = "No available targets are compatible with this triple.";
return nullptr;
}