summaryrefslogtreecommitdiff
path: root/lib/Target
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Target')
-rw-r--r--lib/Target/AllTargets.cpp43
-rw-r--r--lib/Target/CMakeLists.txt1
2 files changed, 44 insertions, 0 deletions
diff --git a/lib/Target/AllTargets.cpp b/lib/Target/AllTargets.cpp
new file mode 100644
index 0000000000..a265e8878a
--- /dev/null
+++ b/lib/Target/AllTargets.cpp
@@ -0,0 +1,43 @@
+//===-- AllTargets.cpp ----------------------------------------------------===//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file is distributed under the University of Illinois Open Source
+// License. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+//
+// This file implements functions for initialization of different
+// aspects of all configured targets. When calling any of these
+// functions all configured targets must be linked in.
+//
+//===----------------------------------------------------------------------===//
+
+#include "llvm-c/Target.h"
+#include "llvm/Support/TargetSelect.h"
+
+using namespace llvm;
+
+void LLVMInitializeAllTargetInfos(void) {
+ InitializeAllTargetInfos();
+}
+
+void LLVMInitializeAllTargets(void) {
+ InitializeAllTargets();
+}
+
+void LLVMInitializeAllTargetMCs(void) {
+ InitializeAllTargetMCs();
+}
+
+void LLVMInitializeAllAsmPrinters(void) {
+ InitializeAllAsmPrinters();
+}
+
+void LLVMInitializeAllAsmParsers(void) {
+ InitializeAllAsmParsers();
+}
+
+void LLVMInitializeAllDisassemblers(void) {
+ InitializeAllDisassemblers();
+}
diff --git a/lib/Target/CMakeLists.txt b/lib/Target/CMakeLists.txt
index 02ac493b42..75b65cfffa 100644
--- a/lib/Target/CMakeLists.txt
+++ b/lib/Target/CMakeLists.txt
@@ -1,4 +1,5 @@
add_llvm_library(LLVMTarget
+ AllTargets.cpp
Mangler.cpp
Target.cpp
TargetIntrinsicInfo.cpp