From 0094345184bc0a791f0811c8d7f5b6f9c8296e0f Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 14 Nov 2010 18:33:33 +0000 Subject: [PATCH] move PPCAsmPrinter into the main PPC library, like ARM and X86. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@119054 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/PowerPC/AsmPrinter/CMakeLists.txt | 6 ------ lib/Target/PowerPC/AsmPrinter/Makefile | 15 --------------- lib/Target/PowerPC/CMakeLists.txt | 1 + lib/Target/PowerPC/Makefile | 2 +- .../PowerPC/{AsmPrinter => }/PPCAsmPrinter.cpp | 0 5 files changed, 2 insertions(+), 22 deletions(-) delete mode 100644 lib/Target/PowerPC/AsmPrinter/CMakeLists.txt delete mode 100644 lib/Target/PowerPC/AsmPrinter/Makefile rename lib/Target/PowerPC/{AsmPrinter => }/PPCAsmPrinter.cpp (100%) diff --git a/lib/Target/PowerPC/AsmPrinter/CMakeLists.txt b/lib/Target/PowerPC/AsmPrinter/CMakeLists.txt deleted file mode 100644 index 42cd4862a98..00000000000 --- a/lib/Target/PowerPC/AsmPrinter/CMakeLists.txt +++ /dev/null @@ -1,6 +0,0 @@ -include_directories( ${CMAKE_CURRENT_BINARY_DIR}/.. ${CMAKE_CURRENT_SOURCE_DIR}/.. ) - -add_llvm_library(LLVMPowerPCAsmPrinter - PPCAsmPrinter.cpp - ) -add_dependencies(LLVMPowerPCAsmPrinter PowerPCCodeGenTable_gen) diff --git a/lib/Target/PowerPC/AsmPrinter/Makefile b/lib/Target/PowerPC/AsmPrinter/Makefile deleted file mode 100644 index bd5dce12dc4..00000000000 --- a/lib/Target/PowerPC/AsmPrinter/Makefile +++ /dev/null @@ -1,15 +0,0 @@ -##===- lib/Target/PowerPC/AsmPrinter/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 = LLVMPowerPCAsmPrinter - -# Hack: we need to include 'main' PowerPC target directory to grab private headers -CPP.Flags += -I$(PROJ_OBJ_DIR)/.. -I$(PROJ_SRC_DIR)/.. - -include $(LEVEL)/Makefile.common diff --git a/lib/Target/PowerPC/CMakeLists.txt b/lib/Target/PowerPC/CMakeLists.txt index 5f48bd00c63..cfa33af4e36 100644 --- a/lib/Target/PowerPC/CMakeLists.txt +++ b/lib/Target/PowerPC/CMakeLists.txt @@ -12,6 +12,7 @@ tablegen(PPCGenCallingConv.inc -gen-callingconv) tablegen(PPCGenSubtarget.inc -gen-subtarget) add_llvm_target(PowerPCCodeGen + PPCAsmPrinter.cpp PPCBranchSelector.cpp PPCCodeEmitter.cpp PPCHazardRecognizers.cpp diff --git a/lib/Target/PowerPC/Makefile b/lib/Target/PowerPC/Makefile index 1265f1d3691..addcf498344 100644 --- a/lib/Target/PowerPC/Makefile +++ b/lib/Target/PowerPC/Makefile @@ -18,6 +18,6 @@ BUILT_SOURCES = PPCGenInstrNames.inc PPCGenRegisterNames.inc \ PPCGenInstrInfo.inc PPCGenDAGISel.inc \ PPCGenSubtarget.inc PPCGenCallingConv.inc -DIRS = AsmPrinter TargetInfo +DIRS = TargetInfo include $(LEVEL)/Makefile.common diff --git a/lib/Target/PowerPC/AsmPrinter/PPCAsmPrinter.cpp b/lib/Target/PowerPC/PPCAsmPrinter.cpp similarity index 100% rename from lib/Target/PowerPC/AsmPrinter/PPCAsmPrinter.cpp rename to lib/Target/PowerPC/PPCAsmPrinter.cpp