[PATCH] D79210: Let clang print registered targets for --version

Yaxun Liu via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon May 4 09:39:06 PDT 2020


This revision was automatically updated to reflect the committed changes.
Closed by commit rG66041187c902: Let clang print registered targets for --version (authored by yaxunl).
Herald added a project: clang.

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D79210/new/

https://reviews.llvm.org/D79210

Files:
  clang/lib/Driver/Driver.cpp


Index: clang/lib/Driver/Driver.cpp
===================================================================
--- clang/lib/Driver/Driver.cpp
+++ clang/lib/Driver/Driver.cpp
@@ -1569,6 +1569,9 @@
   // If configuration file was used, print its path.
   if (!ConfigFile.empty())
     OS << "Configuration file: " << ConfigFile << '\n';
+
+  // Print the registered targets.
+  llvm::TargetRegistry::printRegisteredTargetsForVersion(OS);
 }
 
 /// PrintDiagnosticCategories - Implement the --print-diagnostic-categories


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D79210.261850.patch
Type: text/x-patch
Size: 511 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200504/52f0b014/attachment.bin>


More information about the cfe-commits mailing list