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

Daniel Dunbar daniel at zuster.org
Sun Nov 6 10:04:24 PST 2011


Author: ddunbar
Date: Sun Nov  6 12:04:23 2011
New Revision: 143879

URL: http://llvm.org/viewvc/llvm-project?rev=143879&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)

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=143879&r1=143878&r2=143879&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-config-2/llvm-config.cpp (original)
+++ llvm/trunk/tools/llvm-config-2/llvm-config.cpp Sun Nov  6 12:04:23 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.
@@ -261,7 +253,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