diff options
author | Daniel Dunbar <daniel@zuster.org> | 2011-12-16 00:04:43 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2011-12-16 00:04:43 +0000 |
commit | 30a89761276fc25ec595af6a79b004361caf974c (patch) | |
tree | fa0c41a0885a847c0f1ebdf61145c7da72290c67 /llvm/tools/llvm-config/llvm-config.cpp | |
parent | 66886253a7408b697c7f3760eb4869fa74248e1a (diff) | |
download | bcm5719-llvm-30a89761276fc25ec595af6a79b004361caf974c.tar.gz bcm5719-llvm-30a89761276fc25ec595af6a79b004361caf974c.zip |
llvm-config: Fix --targets-built, I changed this to use the registry but wasn't
properly initializing the target infos. I decided it wasn't worth linking them
in for this, so just switched back to using the Makefile variable for now. We
can reconsider later if we ever get pluggable targets.
llvm-svn: 146711
Diffstat (limited to 'llvm/tools/llvm-config/llvm-config.cpp')
-rw-r--r-- | llvm/tools/llvm-config/llvm-config.cpp | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/llvm/tools/llvm-config/llvm-config.cpp b/llvm/tools/llvm-config/llvm-config.cpp index 4b6179904af..2bb0aebc80e 100644 --- a/llvm/tools/llvm-config/llvm-config.cpp +++ b/llvm/tools/llvm-config/llvm-config.cpp @@ -25,7 +25,6 @@ #include "llvm/Config/llvm-config.h" #include "llvm/Support/FileSystem.h" #include "llvm/Support/Path.h" -#include "llvm/Support/TargetRegistry.h" #include "llvm/Support/raw_ostream.h" #include <cstdlib> #include <set> @@ -271,14 +270,7 @@ int main(int argc, char **argv) { } OS << '\n'; } else if (Arg == "--targets-built") { - bool First = true; - for (TargetRegistry::iterator I = TargetRegistry::begin(), - E = TargetRegistry::end(); I != E; First = false, ++I) { - if (!First) - OS << ' '; - OS << I->getName(); - } - OS << '\n'; + OS << LLVM_TARGETS_BUILT << '\n'; } else if (Arg == "--host-target") { OS << LLVM_DEFAULT_TARGET_TRIPLE << '\n'; } else if (Arg == "--build-mode") { |