[llvm-bugs] [Bug 31739] New: Print triple in "No avail targets .. " message

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Jan 24 09:12:56 PST 2017


https://llvm.org/bugs/show_bug.cgi?id=31739

            Bug ID: 31739
           Summary: Print triple in "No avail targets .. " message
           Product: libraries
           Version: 3.9
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Support Libraries
          Assignee: unassignedbugs at nondot.org
          Reporter: bzeeb-lists at lists.zabbadoz.net
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

Just helpful when you are adding new triples...

--- llvm/lib/Support/TargetRegistry.cpp
+++ llvm/lib/Support/TargetRegistry.cpp
@@ -73,7 +73,8 @@ 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.";
+    Error = "No available targets are compatible with this triple \"" +
+            TT + "\".";
     return nullptr;
   }

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20170124/8a9e1ba3/attachment.html>


More information about the llvm-bugs mailing list