]> granicus.if.org Git - llvm/commitdiff
[AVR] Move InstPrinter files to MCTargetDesc. NFC
authorRichard Trieu <rtrieu@google.com>
Sat, 11 May 2019 01:03:03 +0000 (01:03 +0000)
committerRichard Trieu <rtrieu@google.com>
Sat, 11 May 2019 01:03:03 +0000 (01:03 +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@360493 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/AVR/AVRAsmPrinter.cpp
lib/Target/AVR/CMakeLists.txt
lib/Target/AVR/InstPrinter/CMakeLists.txt [deleted file]
lib/Target/AVR/InstPrinter/LLVMBuild.txt [deleted file]
lib/Target/AVR/LLVMBuild.txt
lib/Target/AVR/MCTargetDesc/AVRInstPrinter.cpp [moved from lib/Target/AVR/InstPrinter/AVRInstPrinter.cpp with 100% similarity]
lib/Target/AVR/MCTargetDesc/AVRInstPrinter.h [moved from lib/Target/AVR/InstPrinter/AVRInstPrinter.h with 100% similarity]
lib/Target/AVR/MCTargetDesc/AVRMCTargetDesc.cpp
lib/Target/AVR/MCTargetDesc/CMakeLists.txt
lib/Target/AVR/MCTargetDesc/LLVMBuild.txt

index d885050d5bf03931989e170978266afeb354b23b..33f47576464a4665e0c4d0548876cbaf5518f5be 100644 (file)
@@ -14,7 +14,7 @@
 #include "AVR.h"
 #include "AVRMCInstLower.h"
 #include "AVRSubtarget.h"
-#include "InstPrinter/AVRInstPrinter.h"
+#include "MCTargetDesc/AVRInstPrinter.h"
 
 #include "llvm/CodeGen/AsmPrinter.h"
 #include "llvm/CodeGen/MachineFunction.h"
index 40ce548bff2c4e1141ce78cc346f98ae9c6b68b3..e7a44acdaac3d1433a26070c796584522ffc033c 100644 (file)
@@ -32,6 +32,5 @@ add_llvm_target(AVRCodeGen
 
 add_subdirectory(AsmParser)
 add_subdirectory(Disassembler)
-add_subdirectory(InstPrinter)
 add_subdirectory(MCTargetDesc)
 add_subdirectory(TargetInfo)
diff --git a/lib/Target/AVR/InstPrinter/CMakeLists.txt b/lib/Target/AVR/InstPrinter/CMakeLists.txt
deleted file mode 100644 (file)
index 0f3539a..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-include_directories( ${CMAKE_CURRENT_BINARY_DIR}/..
-                     ${CMAKE_CURRENT_SOURCE_DIR}/.. )
-
-add_llvm_library(LLVMAVRAsmPrinter
-  AVRInstPrinter.cpp
-  )
-
-add_dependencies(LLVMAVRAsmPrinter AVRCommonTableGen)
\ No newline at end of file
diff --git a/lib/Target/AVR/InstPrinter/LLVMBuild.txt b/lib/Target/AVR/InstPrinter/LLVMBuild.txt
deleted file mode 100644 (file)
index 67203ff..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-;===- ./lib/Target/AVR/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 = AVRAsmPrinter
-parent = AVR
-required_libraries = MC Support
-add_to_library_groups = AVR
\ No newline at end of file
index 359ac1ae4b9fc126d97478ad7195e3f7d02cb646..d488c9ea94bc0d0fef37e20b1b0067e8e0b37542 100644 (file)
@@ -15,7 +15,7 @@
 ;===------------------------------------------------------------------------===;
 
 [common]
-subdirectories = AsmParser Disassembler InstPrinter MCTargetDesc TargetInfo
+subdirectories = AsmParser Disassembler MCTargetDesc TargetInfo
 
 [component_0]
 type = TargetGroup
@@ -29,6 +29,6 @@ has_disassembler = 1
 type = Library
 name = AVRCodeGen
 parent = AVR
-required_libraries = AsmPrinter CodeGen Core MC AVRAsmPrinter AVRDesc AVRInfo SelectionDAG Support Target
+required_libraries = AsmPrinter CodeGen Core MC AVRDesc AVRInfo SelectionDAG Support Target
 add_to_library_groups = AVR
 
index 9791bce0c2976f4d6e12f85d95d547f7c4bbaa7b..47726dff607a1cf932494bd9589059d7f050050f 100644 (file)
 //===----------------------------------------------------------------------===//
 
 #include "AVRELFStreamer.h"
+#include "AVRInstPrinter.h"
 #include "AVRMCAsmInfo.h"
 #include "AVRMCELFStreamer.h"
 #include "AVRMCTargetDesc.h"
 #include "AVRTargetStreamer.h"
-#include "InstPrinter/AVRInstPrinter.h"
 
 #include "llvm/MC/MCAsmBackend.h"
 #include "llvm/MC/MCELFStreamer.h"
index eb7fe956cf34c868b2682f280f31830a08ea3038..04a5bbc6c4e10e9114b6a2fb26e5bc72bcf40970 100644 (file)
@@ -2,6 +2,7 @@ add_llvm_library(LLVMAVRDesc
   AVRAsmBackend.cpp
   AVRELFObjectWriter.cpp
   AVRELFStreamer.cpp
+  AVRInstPrinter.cpp
   AVRMCAsmInfo.cpp
   AVRMCCodeEmitter.cpp
   AVRMCELFStreamer.cpp
index b62e615ef7d525614c4106f575140c87dbeabddf..45460e5f24083451ca3b3a9f9b6caca174c79a05 100644 (file)
@@ -18,5 +18,5 @@
 type = Library
 name = AVRDesc
 parent = AVR
-required_libraries = MC AVRAsmPrinter AVRInfo Support
+required_libraries = MC AVRInfo Support
 add_to_library_groups = AVR