diff options
| author | Richard Trieu <rtrieu@google.com> | 2019-05-11 01:58:52 +0000 |
|---|---|---|
| committer | Richard Trieu <rtrieu@google.com> | 2019-05-11 01:58:52 +0000 |
| commit | 61fb6700a569343ec1908043b9faac69c34168a5 (patch) | |
| tree | 80aea4fd5a9e176f35e4314e6d8eebedad753d79 /llvm | |
| parent | fa29bee9d0c0734d0c698a7e7899fc92ef5acd24 (diff) | |
| download | bcm5719-llvm-61fb6700a569343ec1908043b9faac69c34168a5.tar.gz bcm5719-llvm-61fb6700a569343ec1908043b9faac69c34168a5.zip | |
[MSP430] Move InstPrinter files to MCTargetDesc. NFC
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.
llvm-svn: 360498
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/lib/Target/MSP430/CMakeLists.txt | 1 | ||||
| -rw-r--r-- | llvm/lib/Target/MSP430/InstPrinter/CMakeLists.txt | 3 | ||||
| -rw-r--r-- | llvm/lib/Target/MSP430/InstPrinter/LLVMBuild.txt | 22 | ||||
| -rw-r--r-- | llvm/lib/Target/MSP430/LLVMBuild.txt | 4 | ||||
| -rw-r--r-- | llvm/lib/Target/MSP430/MCTargetDesc/CMakeLists.txt | 1 | ||||
| -rw-r--r-- | llvm/lib/Target/MSP430/MCTargetDesc/LLVMBuild.txt | 2 | ||||
| -rw-r--r-- | llvm/lib/Target/MSP430/MCTargetDesc/MSP430InstPrinter.cpp (renamed from llvm/lib/Target/MSP430/InstPrinter/MSP430InstPrinter.cpp) | 0 | ||||
| -rw-r--r-- | llvm/lib/Target/MSP430/MCTargetDesc/MSP430InstPrinter.h (renamed from llvm/lib/Target/MSP430/InstPrinter/MSP430InstPrinter.h) | 4 | ||||
| -rw-r--r-- | llvm/lib/Target/MSP430/MCTargetDesc/MSP430MCTargetDesc.cpp | 2 | ||||
| -rw-r--r-- | llvm/lib/Target/MSP430/MSP430AsmPrinter.cpp | 2 |
10 files changed, 8 insertions, 33 deletions
diff --git a/llvm/lib/Target/MSP430/CMakeLists.txt b/llvm/lib/Target/MSP430/CMakeLists.txt index 2a0848fb308..4902cee5de2 100644 --- a/llvm/lib/Target/MSP430/CMakeLists.txt +++ b/llvm/lib/Target/MSP430/CMakeLists.txt @@ -26,7 +26,6 @@ add_llvm_target(MSP430CodeGen MSP430MCInstLower.cpp ) -add_subdirectory(InstPrinter) add_subdirectory(MCTargetDesc) add_subdirectory(TargetInfo) add_subdirectory(AsmParser) diff --git a/llvm/lib/Target/MSP430/InstPrinter/CMakeLists.txt b/llvm/lib/Target/MSP430/InstPrinter/CMakeLists.txt deleted file mode 100644 index 580a9ce71d9..00000000000 --- a/llvm/lib/Target/MSP430/InstPrinter/CMakeLists.txt +++ /dev/null @@ -1,3 +0,0 @@ -add_llvm_library(LLVMMSP430AsmPrinter - MSP430InstPrinter.cpp - ) diff --git a/llvm/lib/Target/MSP430/InstPrinter/LLVMBuild.txt b/llvm/lib/Target/MSP430/InstPrinter/LLVMBuild.txt deleted file mode 100644 index a8c9e970a88..00000000000 --- a/llvm/lib/Target/MSP430/InstPrinter/LLVMBuild.txt +++ /dev/null @@ -1,22 +0,0 @@ -;===- ./lib/Target/MSP430/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 = MSP430AsmPrinter -parent = MSP430 -required_libraries = MC Support -add_to_library_groups = MSP430 diff --git a/llvm/lib/Target/MSP430/LLVMBuild.txt b/llvm/lib/Target/MSP430/LLVMBuild.txt index 935f42f565a..046301f90e3 100644 --- a/llvm/lib/Target/MSP430/LLVMBuild.txt +++ b/llvm/lib/Target/MSP430/LLVMBuild.txt @@ -15,7 +15,7 @@ ;===------------------------------------------------------------------------===; [common] -subdirectories = AsmParser Disassembler InstPrinter MCTargetDesc TargetInfo +subdirectories = AsmParser Disassembler MCTargetDesc TargetInfo [component_0] type = TargetGroup @@ -29,5 +29,5 @@ has_disassembler = 1 type = Library name = MSP430CodeGen parent = MSP430 -required_libraries = AsmPrinter CodeGen Core MC MSP430AsmPrinter MSP430Desc MSP430Info SelectionDAG Support Target +required_libraries = AsmPrinter CodeGen Core MC MSP430Desc MSP430Info SelectionDAG Support Target add_to_library_groups = MSP430 diff --git a/llvm/lib/Target/MSP430/MCTargetDesc/CMakeLists.txt b/llvm/lib/Target/MSP430/MCTargetDesc/CMakeLists.txt index a2f468779f5..b3edd496409 100644 --- a/llvm/lib/Target/MSP430/MCTargetDesc/CMakeLists.txt +++ b/llvm/lib/Target/MSP430/MCTargetDesc/CMakeLists.txt @@ -2,6 +2,7 @@ add_llvm_library(LLVMMSP430Desc MSP430AsmBackend.cpp MSP430ELFObjectWriter.cpp MSP430ELFStreamer.cpp + MSP430InstPrinter.cpp MSP430MCAsmInfo.cpp MSP430MCCodeEmitter.cpp MSP430MCTargetDesc.cpp diff --git a/llvm/lib/Target/MSP430/MCTargetDesc/LLVMBuild.txt b/llvm/lib/Target/MSP430/MCTargetDesc/LLVMBuild.txt index cc12d654a8e..a2a0dd268d1 100644 --- a/llvm/lib/Target/MSP430/MCTargetDesc/LLVMBuild.txt +++ b/llvm/lib/Target/MSP430/MCTargetDesc/LLVMBuild.txt @@ -18,5 +18,5 @@ type = Library name = MSP430Desc parent = MSP430 -required_libraries = MC MSP430AsmPrinter MSP430Info Support +required_libraries = MC MSP430Info Support add_to_library_groups = MSP430 diff --git a/llvm/lib/Target/MSP430/InstPrinter/MSP430InstPrinter.cpp b/llvm/lib/Target/MSP430/MCTargetDesc/MSP430InstPrinter.cpp index 2f3c6ed3c17..2f3c6ed3c17 100644 --- a/llvm/lib/Target/MSP430/InstPrinter/MSP430InstPrinter.cpp +++ b/llvm/lib/Target/MSP430/MCTargetDesc/MSP430InstPrinter.cpp diff --git a/llvm/lib/Target/MSP430/InstPrinter/MSP430InstPrinter.h b/llvm/lib/Target/MSP430/MCTargetDesc/MSP430InstPrinter.h index a2f527807a4..25451033236 100644 --- a/llvm/lib/Target/MSP430/InstPrinter/MSP430InstPrinter.h +++ b/llvm/lib/Target/MSP430/MCTargetDesc/MSP430InstPrinter.h @@ -10,8 +10,8 @@ // //===----------------------------------------------------------------------===// -#ifndef LLVM_LIB_TARGET_MSP430_INSTPRINTER_MSP430INSTPRINTER_H -#define LLVM_LIB_TARGET_MSP430_INSTPRINTER_MSP430INSTPRINTER_H +#ifndef LLVM_LIB_TARGET_MSP430_MCTARGETDESC_MSP430INSTPRINTER_H +#define LLVM_LIB_TARGET_MSP430_MCTARGETDESC_MSP430INSTPRINTER_H #include "llvm/MC/MCInstPrinter.h" diff --git a/llvm/lib/Target/MSP430/MCTargetDesc/MSP430MCTargetDesc.cpp b/llvm/lib/Target/MSP430/MCTargetDesc/MSP430MCTargetDesc.cpp index 7bb966f5889..76eb03988a5 100644 --- a/llvm/lib/Target/MSP430/MCTargetDesc/MSP430MCTargetDesc.cpp +++ b/llvm/lib/Target/MSP430/MCTargetDesc/MSP430MCTargetDesc.cpp @@ -11,7 +11,7 @@ //===----------------------------------------------------------------------===// #include "MSP430MCTargetDesc.h" -#include "InstPrinter/MSP430InstPrinter.h" +#include "MSP430InstPrinter.h" #include "MSP430MCAsmInfo.h" #include "llvm/MC/MCInstrInfo.h" #include "llvm/MC/MCRegisterInfo.h" diff --git a/llvm/lib/Target/MSP430/MSP430AsmPrinter.cpp b/llvm/lib/Target/MSP430/MSP430AsmPrinter.cpp index 90f7ff99b4c..786ff5f8525 100644 --- a/llvm/lib/Target/MSP430/MSP430AsmPrinter.cpp +++ b/llvm/lib/Target/MSP430/MSP430AsmPrinter.cpp @@ -11,7 +11,7 @@ // //===----------------------------------------------------------------------===// -#include "InstPrinter/MSP430InstPrinter.h" +#include "MCTargetDesc/MSP430InstPrinter.h" #include "MSP430.h" #include "MSP430InstrInfo.h" #include "MSP430MCInstLower.h" |

