diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Target/AllTargets.cpp | 43 | ||||
-rw-r--r-- | lib/Target/CMakeLists.txt | 1 |
2 files changed, 44 insertions, 0 deletions
diff --git a/lib/Target/AllTargets.cpp b/lib/Target/AllTargets.cpp new file mode 100644 index 0000000..a265e88 --- /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 02ac493..75b65cf 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 |