diff --git a/lib/ExecutionEngine/JIT/TargetSelect.cpp b/lib/ExecutionEngine/JIT/TargetSelect.cpp index 2c105416cc7..8bed33bb7d4 100644 --- a/lib/ExecutionEngine/JIT/TargetSelect.cpp +++ b/lib/ExecutionEngine/JIT/TargetSelect.cpp @@ -26,7 +26,8 @@ using namespace llvm; static cl::opt -MArch("march", cl::desc("Architecture to generate assembly for (see --version)")); +MArch("march", + cl::desc("Architecture to generate assembly for (see --version)")); static cl::opt MCPU("mcpu", @@ -61,7 +62,8 @@ TargetMachine *JIT::selectTarget(ModuleProvider *MP, std::string *ErrorStr) { } if (!TheTarget) { - errs() << "JIT: error: invalid target '" << MArch << "'.\n"; + *ErrorStr = "No available targets are compatible with this -march, " + "see -version for the available targets.\n"; return 0; } diff --git a/lib/Support/TargetRegistry.cpp b/lib/Support/TargetRegistry.cpp index 79f30a71f2b..5896447f5ea 100644 --- a/lib/Support/TargetRegistry.cpp +++ b/lib/Support/TargetRegistry.cpp @@ -40,7 +40,8 @@ const Target *TargetRegistry::lookupTarget(const std::string &TT, } if (!Best) { - Error = "No available targets are compatible with this triple"; + Error = "No available targets are compatible with this triple, " + "see -version for the available targets."; return 0; }