]> granicus.if.org Git - llvm/commitdiff
Give MSP430 a separate asmprinter lib
authorAnton Korobeynikov <asl@math.spbu.ru>
Fri, 14 Aug 2009 18:28:12 +0000 (18:28 +0000)
committerAnton Korobeynikov <asl@math.spbu.ru>
Fri, 14 Aug 2009 18:28:12 +0000 (18:28 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79012 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/MSP430/AsmPrinter/CMakeLists.txt [new file with mode: 0644]
lib/Target/MSP430/AsmPrinter/MSP430AsmPrinter.cpp [moved from lib/Target/MSP430/MSP430AsmPrinter.cpp with 100% similarity]
lib/Target/MSP430/AsmPrinter/Makefile [new file with mode: 0644]
lib/Target/MSP430/Makefile

diff --git a/lib/Target/MSP430/AsmPrinter/CMakeLists.txt b/lib/Target/MSP430/AsmPrinter/CMakeLists.txt
new file mode 100644 (file)
index 0000000..6e66887
--- /dev/null
@@ -0,0 +1,6 @@
+include_directories( ${CMAKE_CURRENT_BINARY_DIR}/.. ${CMAKE_CURRENT_SOURCE_DIR}/.. )
+
+add_llvm_library(LLVMMSP430AsmPrinter
+  MSP430AsmPrinter.cpp
+  )
+add_dependencies(LLVMMSP430AsmPrinter MSP430CodeGenTable_gen)
diff --git a/lib/Target/MSP430/AsmPrinter/Makefile b/lib/Target/MSP430/AsmPrinter/Makefile
new file mode 100644 (file)
index 0000000..888a2fa
--- /dev/null
@@ -0,0 +1,15 @@
+##===- lib/Target/MSP430/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 = LLVMMSP430AsmPrinter
+
+# Hack: we need to include 'main' MSP430 target directory to grab private headers
+CPPFLAGS = -I$(PROJ_OBJ_DIR)/.. -I$(PROJ_SRC_DIR)/..
+
+include $(LEVEL)/Makefile.common
index 1ca57d7251f9881eb164902ece70c759cc6d273d..4b18bc9ab428d756218ca8f745bfd173917ed2f6 100644 (file)
@@ -7,7 +7,7 @@
 # 
 ##===----------------------------------------------------------------------===##
 LEVEL = ../../..
-LIBRARYNAME = LLVMMSP430
+LIBRARYNAME = LLVMMSP430CodeGen
 TARGET = MSP430
 
 # Make sure that tblgen is run, first thing.
@@ -17,7 +17,7 @@ BUILT_SOURCES = MSP430GenRegisterInfo.h.inc MSP430GenRegisterNames.inc \
                MSP430GenDAGISel.inc MSP430GenCallingConv.inc \
                MSP430GenSubtarget.inc
 
-DIRS = TargetInfo
+DIRS = AsmPrinter TargetInfo
 
 include $(LEVEL)/Makefile.common