summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/TargetRegistry.cpp
diff options
context:
space:
mode:
authorJF Bastien <jfbastien@apple.com>2018-08-23 03:40:31 +0000
committerJF Bastien <jfbastien@apple.com>2018-08-23 03:40:31 +0000
commita1cca516eb745b115a0228592651741ca3c810ff (patch)
tree15adb009975030a201b073082e55c73a746fb51a /llvm/lib/Support/TargetRegistry.cpp
parent97edcbc4e0ff1f1d689b9b70e43ff4cd28379d20 (diff)
downloadbcm5719-llvm-a1cca516eb745b115a0228592651741ca3c810ff.tar.gz
bcm5719-llvm-a1cca516eb745b115a0228592651741ca3c810ff.zip
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
Diffstat (limited to 'llvm/lib/Support/TargetRegistry.cpp')
-rw-r--r--llvm/lib/Support/TargetRegistry.cpp2
1 files changed, 1 insertions, 1 deletions
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;
}
OpenPOWER on IntegriCloud