mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-11 21:38:19 +00:00
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@146711 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -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") {
|
||||
|
Reference in New Issue
Block a user