From ea38970596cd6cdb6cfaeba36472ae03c1cbee4e Mon Sep 17 00:00:00 2001 From: Anton Korobeynikov Date: Fri, 3 Apr 2009 10:38:51 +0000 Subject: [PATCH] Move IA64 asmprinter to separate library git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@68380 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/IA64/AsmPrinter/CMakeLists.txt | 12 ++++++++++++ .../IA64/{ => AsmPrinter}/IA64AsmPrinter.cpp | 0 lib/Target/IA64/AsmPrinter/Makefile | 17 +++++++++++++++++ lib/Target/IA64/Makefile | 4 +++- 4 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 lib/Target/IA64/AsmPrinter/CMakeLists.txt rename lib/Target/IA64/{ => AsmPrinter}/IA64AsmPrinter.cpp (100%) create mode 100644 lib/Target/IA64/AsmPrinter/Makefile diff --git a/lib/Target/IA64/AsmPrinter/CMakeLists.txt b/lib/Target/IA64/AsmPrinter/CMakeLists.txt new file mode 100644 index 00000000000..1d552bd5551 --- /dev/null +++ b/lib/Target/IA64/AsmPrinter/CMakeLists.txt @@ -0,0 +1,12 @@ +include_directories( + ${CMAKE_CURRENT_BINARY_DIR}/.. + ${CMAKE_CURRENT_SOURCE_DIR}/.. + ) + +add_partially_linked_object(LLVMIA64AsmPrinter + IA64AsmPrinter.cpp + ) + +target_name_of_partially_linked_object(LLVMIA64CodeGen n) + +add_dependencies(LLVMIA64AsmPrinter ${n}) diff --git a/lib/Target/IA64/IA64AsmPrinter.cpp b/lib/Target/IA64/AsmPrinter/IA64AsmPrinter.cpp similarity index 100% rename from lib/Target/IA64/IA64AsmPrinter.cpp rename to lib/Target/IA64/AsmPrinter/IA64AsmPrinter.cpp diff --git a/lib/Target/IA64/AsmPrinter/Makefile b/lib/Target/IA64/AsmPrinter/Makefile new file mode 100644 index 00000000000..4442d2cf1cc --- /dev/null +++ b/lib/Target/IA64/AsmPrinter/Makefile @@ -0,0 +1,17 @@ +##===- lib/Target/CellSPU/Makefile -------------------------*- Makefile -*-===## +# +# The LLVM Compiler Infrastructure +# +# This file is distributed under the University of Illinois Open Source +# License. See LICENSE.TXT for details. +# +##===----------------------------------------------------------------------===## + +LEVEL = ../../../.. +LIBRARYNAME = LLVMIA64AsmPrinter + +# Hack: we need to include 'main' IA64 target directory to grab +# private headers +CPPFLAGS = -I$(PROJ_OBJ_DIR)/.. -I$(PROJ_SRC_DIR)/.. + +include $(LEVEL)/Makefile.common diff --git a/lib/Target/IA64/Makefile b/lib/Target/IA64/Makefile index 87616dae987..d38325422c6 100644 --- a/lib/Target/IA64/Makefile +++ b/lib/Target/IA64/Makefile @@ -6,7 +6,7 @@ # ##===----------------------------------------------------------------------===## LEVEL = ../../.. -LIBRARYNAME = LLVMIA64 +LIBRARYNAME = LLVMIA64CodeGen TARGET = IA64 # Make sure that tblgen is run, first thing. BUILT_SOURCES = IA64GenRegisterInfo.h.inc IA64GenRegisterNames.inc \ @@ -14,5 +14,7 @@ BUILT_SOURCES = IA64GenRegisterInfo.h.inc IA64GenRegisterNames.inc \ IA64GenInstrInfo.inc IA64GenAsmWriter.inc \ IA64GenDAGISel.inc +DIRS = AsmPrinter + include $(LEVEL)/Makefile.common