summaryrefslogtreecommitdiff
path: root/lib/Target/AllTargetsBindings/AllTargetsBindings.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Target/AllTargetsBindings/AllTargetsBindings.cpp')
-rw-r--r--lib/Target/AllTargetsBindings/AllTargetsBindings.cpp42
1 files changed, 42 insertions, 0 deletions
diff --git a/lib/Target/AllTargetsBindings/AllTargetsBindings.cpp b/lib/Target/AllTargetsBindings/AllTargetsBindings.cpp
new file mode 100644
index 0000000000..5f1a9c921d
--- /dev/null
+++ b/lib/Target/AllTargetsBindings/AllTargetsBindings.cpp
@@ -0,0 +1,42 @@
+//===-- AllTargetsBindings.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 the llvm-c functions for initialization of
+// different aspects of all configured targets.
+//
+//===----------------------------------------------------------------------===//
+
+#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();
+}