]> granicus.if.org Git - llvm/commitdiff
[PowerPC] Move InstPrinter files to MCTargetDesc. NFC
authorRichard Trieu <rtrieu@google.com>
Sat, 11 May 2019 02:33:18 +0000 (02:33 +0000)
committerRichard Trieu <rtrieu@google.com>
Sat, 11 May 2019 02:33:18 +0000 (02:33 +0000)
For some targets, there is a circular dependency between InstPrinter and
MCTargetDesc.  Merging them together will fix this.  For the other targets,
the merging is to maintain consistency so all targets will have the same
structure.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@360502 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/PowerPC/CMakeLists.txt
lib/Target/PowerPC/InstPrinter/CMakeLists.txt [deleted file]
lib/Target/PowerPC/InstPrinter/LLVMBuild.txt [deleted file]
lib/Target/PowerPC/LLVMBuild.txt
lib/Target/PowerPC/MCTargetDesc/CMakeLists.txt
lib/Target/PowerPC/MCTargetDesc/LLVMBuild.txt
lib/Target/PowerPC/MCTargetDesc/PPCInstPrinter.cpp [moved from lib/Target/PowerPC/InstPrinter/PPCInstPrinter.cpp with 99% similarity]
lib/Target/PowerPC/MCTargetDesc/PPCInstPrinter.h [moved from lib/Target/PowerPC/InstPrinter/PPCInstPrinter.h with 96% similarity]
lib/Target/PowerPC/MCTargetDesc/PPCMCTargetDesc.cpp
lib/Target/PowerPC/PPCAsmPrinter.cpp

index 2df8666e50f3efa8b658c5097a7a42cc08ace832..affe295f28ef0306dd45e4a1de2b01e0d2d3d414 100644 (file)
@@ -52,6 +52,5 @@ add_llvm_target(PowerPCCodeGen
 
 add_subdirectory(AsmParser)
 add_subdirectory(Disassembler)
-add_subdirectory(InstPrinter)
 add_subdirectory(MCTargetDesc)
 add_subdirectory(TargetInfo)
diff --git a/lib/Target/PowerPC/InstPrinter/CMakeLists.txt b/lib/Target/PowerPC/InstPrinter/CMakeLists.txt
deleted file mode 100644 (file)
index ab30a11..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-add_llvm_library(LLVMPowerPCAsmPrinter
-  PPCInstPrinter.cpp
-  )
diff --git a/lib/Target/PowerPC/InstPrinter/LLVMBuild.txt b/lib/Target/PowerPC/InstPrinter/LLVMBuild.txt
deleted file mode 100644 (file)
index 83f04cb..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-;===- ./lib/Target/PowerPC/InstPrinter/LLVMBuild.txt -----------*- Conf -*--===;
-;
-; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
-; See https://llvm.org/LICENSE.txt for license information.
-; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-;
-;===------------------------------------------------------------------------===;
-;
-; This is an LLVMBuild description file for the components in this subdirectory.
-;
-; For more information on the LLVMBuild system, please see:
-;
-;   http://llvm.org/docs/LLVMBuild.html
-;
-;===------------------------------------------------------------------------===;
-
-[component_0]
-type = Library
-name = PowerPCAsmPrinter
-parent = PowerPC
-required_libraries = MC Support
-add_to_library_groups = PowerPC
index 164b0201a63a4ffd69f22e3e9c547a1298fe563d..34c295731697c4f5a694062ae6a75c65b96c6cfa 100644 (file)
@@ -15,7 +15,7 @@
 ;===------------------------------------------------------------------------===;
 
 [common]
-subdirectories = AsmParser Disassembler InstPrinter MCTargetDesc TargetInfo
+subdirectories = AsmParser Disassembler MCTargetDesc TargetInfo
 
 [component_0]
 type = TargetGroup
@@ -30,5 +30,5 @@ has_jit = 1
 type = Library
 name = PowerPCCodeGen
 parent = PowerPC
-required_libraries = Analysis AsmPrinter CodeGen Core MC PowerPCAsmPrinter PowerPCDesc PowerPCInfo Scalar SelectionDAG Support Target TransformUtils
+required_libraries = Analysis AsmPrinter CodeGen Core MC PowerPCDesc PowerPCInfo Scalar SelectionDAG Support Target TransformUtils
 add_to_library_groups = PowerPC
index 3cea65ee4de614a504381426ace78c2e1f9e5ff0..147e0ef58e619a53ff042b260572419bb1a79df0 100644 (file)
@@ -1,5 +1,6 @@
 add_llvm_library(LLVMPowerPCDesc
   PPCAsmBackend.cpp
+  PPCInstPrinter.cpp
   PPCMCTargetDesc.cpp
   PPCMCAsmInfo.cpp
   PPCMCCodeEmitter.cpp
index ef5ff39b11ab34d8baef33f93c51893d36d1c83a..2dcd3de2ad18a84cfe9c6a32a47c4bc6e05b7437 100644 (file)
@@ -18,5 +18,5 @@
 type = Library
 name = PowerPCDesc
 parent = PowerPC
-required_libraries = MC PowerPCAsmPrinter PowerPCInfo Support
+required_libraries = MC PowerPCInfo Support
 add_to_library_groups = PowerPC
similarity index 99%
rename from lib/Target/PowerPC/InstPrinter/PPCInstPrinter.cpp
rename to lib/Target/PowerPC/MCTargetDesc/PPCInstPrinter.cpp
index 251385e95f37f1d87e1a26d7f721644c1d1ebcfc..0e64ae55ab1cae93ca07d2500cc6007535a81b28 100644 (file)
@@ -10,7 +10,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "PPCInstPrinter.h"
+#include "MCTargetDesc/PPCInstPrinter.h"
 #include "MCTargetDesc/PPCMCTargetDesc.h"
 #include "MCTargetDesc/PPCPredicates.h"
 #include "PPCInstrInfo.h"
similarity index 96%
rename from lib/Target/PowerPC/InstPrinter/PPCInstPrinter.h
rename to lib/Target/PowerPC/MCTargetDesc/PPCInstPrinter.h
index 71853373a48a693094710cd4c85bd0e2515ecb94..725ae2a7081bdbf6b15e2e6335936c68d82769f9 100644 (file)
@@ -10,8 +10,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#ifndef LLVM_LIB_TARGET_POWERPC_INSTPRINTER_PPCINSTPRINTER_H
-#define LLVM_LIB_TARGET_POWERPC_INSTPRINTER_PPCINSTPRINTER_H
+#ifndef LLVM_LIB_TARGET_POWERPC_MCTARGETDESC_PPCINSTPRINTER_H
+#define LLVM_LIB_TARGET_POWERPC_MCTARGETDESC_PPCINSTPRINTER_H
 
 #include "llvm/ADT/Triple.h"
 #include "llvm/MC/MCInstPrinter.h"
index 8fcf2fab364a235abc346434e55cbb01e0604e27..e4e7716fedaafe7a83ae9534a8fe1441cee19722 100644 (file)
@@ -11,7 +11,7 @@
 //===----------------------------------------------------------------------===//
 
 #include "MCTargetDesc/PPCMCTargetDesc.h"
-#include "InstPrinter/PPCInstPrinter.h"
+#include "MCTargetDesc/PPCInstPrinter.h"
 #include "MCTargetDesc/PPCMCAsmInfo.h"
 #include "PPCTargetStreamer.h"
 #include "llvm/ADT/StringRef.h"
index 1d24e5045fb0fe0bc8b7ac9ca8a08a54bc647965..21dc769e1d301fe9157519809f235ef5a3a84c3f 100644 (file)
@@ -15,7 +15,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "InstPrinter/PPCInstPrinter.h"
+#include "MCTargetDesc/PPCInstPrinter.h"
 #include "MCTargetDesc/PPCMCExpr.h"
 #include "MCTargetDesc/PPCMCTargetDesc.h"
 #include "MCTargetDesc/PPCPredicates.h"