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

Daniel Dunbar daniel at zuster.org
Sun Nov 6 11:57:04 PST 2011


Author: ddunbar
Date: Sun Nov  6 13:57:04 2011
New Revision: 143888

URL: http://llvm.org/viewvc/llvm-project?rev=143888&view=rev
Log:
Revert "llvm-config-2: Switch to using real library dependency table." while I
investigate build failure.

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=143888&r1=143887&r2=143888&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-config-2/llvm-config.cpp (original)
+++ llvm/trunk/tools/llvm-config-2/llvm-config.cpp Sun Nov  6 13:57:04 2011
@@ -43,7 +43,15 @@
 //
 // 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.
-#include "LibraryDependencies.inc"
+//
+// FIXME: Include real component table.
+struct AvailableComponent {
+  const char *Name;
+  const char *Library;
+  const char *RequiredLibraries[1];
+} AvailableComponents[1] = {
+  { "all", 0, { } }
+};
 
 /// \brief Traverse a single component adding to the topological ordering in
 /// \arg RequiredLibs.
@@ -256,6 +264,7 @@
       } 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