[llvm] r259106 - Don't mention a command line option in an error.
Rafael Espindola via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 28 14:55:45 PST 2016
Author: rafael
Date: Thu Jan 28 16:55:45 2016
New Revision: 259106
URL: http://llvm.org/viewvc/llvm-project?rev=259106&view=rev
Log:
Don't mention a command line option in an error.
The program using this code may not have it.
Patch by Wilfred Hughes.
Modified:
llvm/trunk/lib/Support/TargetRegistry.cpp
Modified: llvm/trunk/lib/Support/TargetRegistry.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/TargetRegistry.cpp?rev=259106&r1=259105&r2=259106&view=diff
==============================================================================
--- llvm/trunk/lib/Support/TargetRegistry.cpp (original)
+++ llvm/trunk/lib/Support/TargetRegistry.cpp Thu Jan 28 16:55:45 2016
@@ -73,8 +73,7 @@ const Target *TargetRegistry::lookupTarg
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;
}
More information about the llvm-commits
mailing list