[llvm-commits] [llvm] r144201 - /llvm/trunk/tools/llvm-config-2/llvm-config.cpp

Daniel Dunbar daniel at zuster.org
Wed Nov 9 11:14:51 PST 2011


Author: ddunbar
Date: Wed Nov  9 13:14:51 2011
New Revision: 144201

URL: http://llvm.org/viewvc/llvm-project?rev=144201&view=rev
Log:
llvm-config-2: Switch to using real library dependency table.
 - Also, fix a refacto that left extra "all" component in list (this is now
   defined in the groups explicitly)
 - Reapply of r143879 now that Make should see needed deps.

Modified:
    llvm/trunk/tools/llvm-config-2/llvm-config.cpp

Modified: llvm/trunk/tools/llvm-config-2/llvm-config.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-config-2/llvm-config.cpp?rev=144201&r1=144200&r2=144201&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-config-2/llvm-config.cpp (original)
+++ llvm/trunk/tools/llvm-config-2/llvm-config.cpp Wed Nov  9 13:14:51 2011
@@ -43,15 +43,7 @@
 //
 // Not all components define a library, we also use "library groups" as a way to
 // create entries for pseudo groups like x86 or all-targets.
-//
-// FIXME: Include real component table.
-struct AvailableComponent {
-  const char *Name;
-  const char *Library;
-  const char *RequiredLibraries[1];
-} AvailableComponents[1] = {
-  { "all", 0, { } }
-};
+#include "LibraryDependencies.inc"
 
 /// \brief Traverse a single component adding to the topological ordering in
 /// \arg RequiredLibs.
@@ -264,7 +256,6 @@
       } else if (Arg == "--libfiles") {
         PrintLibFiles = true;
       } else if (Arg == "--components") {
-        OS << "all";
         for (unsigned j = 0; j != array_lengthof(AvailableComponents); ++j) {
           OS << ' ';
           OS << AvailableComponents[j].Name;





More information about the llvm-commits mailing list