From a1cca516eb745b115a0228592651741ca3c810ff Mon Sep 17 00:00:00 2001 From: JF Bastien Date: Thu, 23 Aug 2018 03:40:31 +0000 Subject: Improve incompatible triple error When complaining that the triple is incompatible with all targets, print out the triple not just a generic error about triples not matching. llvm-svn: 340509 --- llvm/lib/Support/TargetRegistry.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/Support/TargetRegistry.cpp') diff --git a/llvm/lib/Support/TargetRegistry.cpp b/llvm/lib/Support/TargetRegistry.cpp index c5eba571476..bb63891cd71 100644 --- a/llvm/lib/Support/TargetRegistry.cpp +++ b/llvm/lib/Support/TargetRegistry.cpp @@ -72,7 +72,7 @@ const Target *TargetRegistry::lookupTarget(const std::string &TT, auto I = find_if(targets(), ArchMatch); if (I == targets().end()) { - Error = "No available targets are compatible with this triple."; + Error = "No available targets are compatible with triple \"" + TT + "\""; return nullptr; } -- cgit v1.2.3