]> granicus.if.org Git - llvm/commitdiff
[XCore] Move InstPrinter files to MCTargetDesc. NFC
authorRichard Trieu <rtrieu@google.com>
Fri, 10 May 2019 23:36:49 +0000 (23:36 +0000)
committerRichard Trieu <rtrieu@google.com>
Fri, 10 May 2019 23:36:49 +0000 (23:36 +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@360485 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/XCore/CMakeLists.txt
lib/Target/XCore/InstPrinter/CMakeLists.txt [deleted file]
lib/Target/XCore/InstPrinter/LLVMBuild.txt [deleted file]
lib/Target/XCore/LLVMBuild.txt
lib/Target/XCore/MCTargetDesc/CMakeLists.txt
lib/Target/XCore/MCTargetDesc/LLVMBuild.txt
lib/Target/XCore/MCTargetDesc/XCoreInstPrinter.cpp [moved from lib/Target/XCore/InstPrinter/XCoreInstPrinter.cpp with 100% similarity]
lib/Target/XCore/MCTargetDesc/XCoreInstPrinter.h [moved from lib/Target/XCore/InstPrinter/XCoreInstPrinter.h with 89% similarity]
lib/Target/XCore/MCTargetDesc/XCoreMCTargetDesc.cpp
lib/Target/XCore/XCoreAsmPrinter.cpp

index f7dbcbacb861634b0094a296f45e99a56d55ebfd..a0ac3858b77f1a2a77aa16811a864e0bd8a1d27a 100644 (file)
@@ -28,6 +28,5 @@ add_llvm_target(XCoreCodeGen
   )
 
 add_subdirectory(Disassembler)
-add_subdirectory(InstPrinter)
 add_subdirectory(MCTargetDesc)
 add_subdirectory(TargetInfo)
diff --git a/lib/Target/XCore/InstPrinter/CMakeLists.txt b/lib/Target/XCore/InstPrinter/CMakeLists.txt
deleted file mode 100644 (file)
index 53cf84d..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-add_llvm_library(LLVMXCoreAsmPrinter
-  XCoreInstPrinter.cpp
-  )
diff --git a/lib/Target/XCore/InstPrinter/LLVMBuild.txt b/lib/Target/XCore/InstPrinter/LLVMBuild.txt
deleted file mode 100644 (file)
index 493b07c..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-;===- ./lib/Target/XCore/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 = XCoreAsmPrinter
-parent = XCore
-required_libraries = MC Support
-add_to_library_groups = XCore
index b876772aae92194fb11f9db470c563daff644a89..280c20a2aefd06526cefc2a2bbb581575d376938 100644 (file)
@@ -15,7 +15,7 @@
 ;===------------------------------------------------------------------------===;
 
 [common]
-subdirectories = Disassembler InstPrinter MCTargetDesc TargetInfo
+subdirectories = Disassembler MCTargetDesc TargetInfo
 
 [component_0]
 type = TargetGroup
@@ -38,7 +38,6 @@ required_libraries =
  Support
  Target
  TransformUtils
- XCoreAsmPrinter
  XCoreDesc
  XCoreInfo
 add_to_library_groups = XCore
index a14cf5ce2ac1498231a1958d398791fe1bc3f227..b2ff32158ae474cf90c8fded90bf318c4690ae39 100644 (file)
@@ -1,4 +1,5 @@
 add_llvm_library(LLVMXCoreDesc
+  XCoreInstPrinter.cpp
   XCoreMCTargetDesc.cpp
   XCoreMCAsmInfo.cpp
   )
index 5e3e1c62eb1778369d518e0268793b2cc482ff53..eabd0cb6c62e0bd02868d4ba19bf372a44e75303 100644 (file)
@@ -18,5 +18,5 @@
 type = Library
 name = XCoreDesc
 parent = XCore
-required_libraries = MC Support XCoreAsmPrinter XCoreInfo
+required_libraries = MC Support XCoreInfo
 add_to_library_groups = XCore
similarity index 89%
rename from lib/Target/XCore/InstPrinter/XCoreInstPrinter.h
rename to lib/Target/XCore/MCTargetDesc/XCoreInstPrinter.h
index 4554ebcf2f96fe6ab67fe3486ffd97ef3fb57ed0..4f0940323505ae3eb2a3093f787211e0caf24b63 100644 (file)
@@ -12,8 +12,8 @@
 ///
 //===----------------------------------------------------------------------===//
 
-#ifndef LLVM_LIB_TARGET_XCORE_INSTPRINTER_XCOREINSTPRINTER_H
-#define LLVM_LIB_TARGET_XCORE_INSTPRINTER_XCOREINSTPRINTER_H
+#ifndef LLVM_LIB_TARGET_XCORE_MCTARGETDESC_XCOREINSTPRINTER_H
+#define LLVM_LIB_TARGET_XCORE_MCTARGETDESC_XCOREINSTPRINTER_H
 
 #include "llvm/ADT/StringRef.h"
 #include "llvm/MC/MCInstPrinter.h"
@@ -43,4 +43,4 @@ private:
 
 } // end namespace llvm
 
-#endif // LLVM_LIB_TARGET_XCORE_INSTPRINTER_XCOREINSTPRINTER_H
+#endif // LLVM_LIB_TARGET_XCORE_MCTARGETDESC_XCOREINSTPRINTER_H
index e2ced98027c840eebd0e6faa0b00301ac7cc6df1..de21bdc514ddd67c5b967d1820bbaaf619caa222 100644 (file)
@@ -11,7 +11,7 @@
 //===----------------------------------------------------------------------===//
 
 #include "MCTargetDesc/XCoreMCTargetDesc.h"
-#include "InstPrinter/XCoreInstPrinter.h"
+#include "MCTargetDesc/XCoreInstPrinter.h"
 #include "MCTargetDesc/XCoreMCAsmInfo.h"
 #include "XCoreTargetStreamer.h"
 #include "llvm/ADT/StringRef.h"
index 66445990011ce3e1c48d96d80e2aa25c56338059..3b53902796d69e738414dfc8ef4e471ec7b7b8bd 100644 (file)
@@ -11,7 +11,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "InstPrinter/XCoreInstPrinter.h"
+#include "MCTargetDesc/XCoreInstPrinter.h"
 #include "XCore.h"
 #include "XCoreInstrInfo.h"
 #include "XCoreMCInstLower.h"