llvm-c: Make target initializer functions external functions in lib.
[oota-llvm.git] / lib / Target / AllTargets.cpp
1 //===-- AllTargets.cpp ----------------------------------------------------===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 //
10 // This file implements functions for initialization of different
11 // aspects of all configured targets. When calling any of these
12 // functions all configured targets must be linked in.
13 //
14 //===----------------------------------------------------------------------===//
15
16 #include "llvm-c/Target.h"
17 #include "llvm/Support/TargetSelect.h"
18
19 using namespace llvm;
20
21 void LLVMInitializeAllTargetInfos(void) {
22   InitializeAllTargetInfos();
23 }
24
25 void LLVMInitializeAllTargets(void) {
26   InitializeAllTargets();
27 }
28
29 void LLVMInitializeAllTargetMCs(void) {
30   InitializeAllTargetMCs();
31 }
32
33 void LLVMInitializeAllAsmPrinters(void) {
34   InitializeAllAsmPrinters();
35 }
36
37 void LLVMInitializeAllAsmParsers(void) {
38   InitializeAllAsmParsers();
39 }
40
41 void LLVMInitializeAllDisassemblers(void) {
42   InitializeAllDisassemblers();
43 }