From 82166eef16b84042553961bbd4acfff20aee53ae Mon Sep 17 00:00:00 2001 From: Rui Ueyama Date: Wed, 9 Oct 2013 23:15:49 +0000 Subject: Revert "llvm-c: Make target initializer functions external functions in lib." This reverts commit r192316. The original change introduced circular dependencies between libTarget and backends. That would broke a build unless link everything into one big binary. llvm-svn: 192329 --- llvm/lib/Target/AllTargets.cpp | 43 ------------------------------------------ llvm/lib/Target/CMakeLists.txt | 1 - 2 files changed, 44 deletions(-) delete mode 100644 llvm/lib/Target/AllTargets.cpp (limited to 'llvm/lib') diff --git a/llvm/lib/Target/AllTargets.cpp b/llvm/lib/Target/AllTargets.cpp deleted file mode 100644 index a265e8878a1..00000000000 --- a/llvm/lib/Target/AllTargets.cpp +++ /dev/null @@ -1,43 +0,0 @@ -//===-- 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/llvm/lib/Target/CMakeLists.txt b/llvm/lib/Target/CMakeLists.txt index 75b65cfffa4..02ac493b421 100644 --- a/llvm/lib/Target/CMakeLists.txt +++ b/llvm/lib/Target/CMakeLists.txt @@ -1,5 +1,4 @@ add_llvm_library(LLVMTarget - AllTargets.cpp Mangler.cpp Target.cpp TargetIntrinsicInfo.cpp -- cgit v1.2.3