summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-07-11 02:44:26 +0000
committerChris Lattner <sabre@nondot.org>2004-07-11 02:44:26 +0000
commit5842560090ca292997722fd61442a11d38a0a857 (patch)
treeb5a83c562854a9c74076b1205bc5cc934de7779e /llvm/lib
parentab2a7f4336c4b74ac51071fba9dd90f0ad95d3cd (diff)
downloadbcm5719-llvm-5842560090ca292997722fd61442a11d38a0a857.tar.gz
bcm5719-llvm-5842560090ca292997722fd61442a11d38a0a857.zip
Initial impl of this file. Yes this is pretty useless right now, but it
will grow in time. llvm-svn: 14743
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/TargetMachineRegistry.cpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/llvm/lib/Target/TargetMachineRegistry.cpp b/llvm/lib/Target/TargetMachineRegistry.cpp
new file mode 100644
index 00000000000..f5286efaab3
--- /dev/null
+++ b/llvm/lib/Target/TargetMachineRegistry.cpp
@@ -0,0 +1,21 @@
+//===-- TargetMachineRegistry.cpp - Target Auto Registration Impl ---------===//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file was developed by the LLVM research group and is distributed under
+// the University of Illinois Open Source License. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+//
+// This file exposes the RegisterTarget class, which TargetMachine
+// implementations should use to register themselves with the system. This file
+// also exposes the TargetMachineRegistry class, which allows tools to inspect
+// all of registered targets.
+//
+//===----------------------------------------------------------------------===//
+
+#include "llvm/Target/TargetMachineRegistry.h"
+using namespace llvm;
+
+const TargetMachineRegistry::Entry *TargetMachineRegistry::List = 0;
+
OpenPOWER on IntegriCloud