[llvm] r360488 - [ARC] Move InstPrinter files to MCTargetDesc. NFC
Richard Trieu via llvm-commits
llvm-commits at lists.llvm.org
Fri May 10 17:13:02 PDT 2019
Author: rtrieu
Date: Fri May 10 17:13:01 2019
New Revision: 360488
URL: http://llvm.org/viewvc/llvm-project?rev=360488&view=rev
Log:
[ARC] 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.
Added:
llvm/trunk/lib/Target/ARC/MCTargetDesc/ARCInstPrinter.cpp
- copied unchanged from r360487, llvm/trunk/lib/Target/ARC/InstPrinter/ARCInstPrinter.cpp
llvm/trunk/lib/Target/ARC/MCTargetDesc/ARCInstPrinter.h
- copied unchanged from r360487, llvm/trunk/lib/Target/ARC/InstPrinter/ARCInstPrinter.h
Removed:
llvm/trunk/lib/Target/ARC/InstPrinter/
Modified:
llvm/trunk/lib/Target/ARC/ARCAsmPrinter.cpp
llvm/trunk/lib/Target/ARC/CMakeLists.txt
llvm/trunk/lib/Target/ARC/LLVMBuild.txt
llvm/trunk/lib/Target/ARC/MCTargetDesc/ARCMCTargetDesc.cpp
llvm/trunk/lib/Target/ARC/MCTargetDesc/CMakeLists.txt
llvm/trunk/lib/Target/ARC/MCTargetDesc/LLVMBuild.txt
Modified: llvm/trunk/lib/Target/ARC/ARCAsmPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARC/ARCAsmPrinter.cpp?rev=360488&r1=360487&r2=360488&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARC/ARCAsmPrinter.cpp (original)
+++ llvm/trunk/lib/Target/ARC/ARCAsmPrinter.cpp Fri May 10 17:13:01 2019
@@ -17,7 +17,7 @@
#include "ARCSubtarget.h"
#include "ARCTargetMachine.h"
#include "ARCTargetStreamer.h"
-#include "InstPrinter/ARCInstPrinter.h"
+#include "MCTargetDesc/ARCInstPrinter.h"
#include "llvm/ADT/SmallString.h"
#include "llvm/ADT/StringExtras.h"
#include "llvm/CodeGen/AsmPrinter.h"
Modified: llvm/trunk/lib/Target/ARC/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARC/CMakeLists.txt?rev=360488&r1=360487&r2=360488&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARC/CMakeLists.txt (original)
+++ llvm/trunk/lib/Target/ARC/CMakeLists.txt Fri May 10 17:13:01 2019
@@ -27,6 +27,5 @@ add_llvm_target(ARCCodeGen
)
add_subdirectory(Disassembler)
-add_subdirectory(InstPrinter)
add_subdirectory(MCTargetDesc)
add_subdirectory(TargetInfo)
Modified: llvm/trunk/lib/Target/ARC/LLVMBuild.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARC/LLVMBuild.txt?rev=360488&r1=360487&r2=360488&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARC/LLVMBuild.txt (original)
+++ llvm/trunk/lib/Target/ARC/LLVMBuild.txt Fri May 10 17:13:01 2019
@@ -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
- ARCAsmPrinter
ARCDesc
ARCInfo
add_to_library_groups = ARC
Modified: llvm/trunk/lib/Target/ARC/MCTargetDesc/ARCMCTargetDesc.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARC/MCTargetDesc/ARCMCTargetDesc.cpp?rev=360488&r1=360487&r2=360488&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARC/MCTargetDesc/ARCMCTargetDesc.cpp (original)
+++ llvm/trunk/lib/Target/ARC/MCTargetDesc/ARCMCTargetDesc.cpp Fri May 10 17:13:01 2019
@@ -11,9 +11,9 @@
//===----------------------------------------------------------------------===//
#include "ARCMCTargetDesc.h"
+#include "ARCInstPrinter.h"
#include "ARCMCAsmInfo.h"
#include "ARCTargetStreamer.h"
-#include "InstPrinter/ARCInstPrinter.h"
#include "llvm/MC/MCDwarf.h"
#include "llvm/MC/MCInstrInfo.h"
#include "llvm/MC/MCRegisterInfo.h"
Modified: llvm/trunk/lib/Target/ARC/MCTargetDesc/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARC/MCTargetDesc/CMakeLists.txt?rev=360488&r1=360487&r2=360488&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARC/MCTargetDesc/CMakeLists.txt (original)
+++ llvm/trunk/lib/Target/ARC/MCTargetDesc/CMakeLists.txt Fri May 10 17:13:01 2019
@@ -1,4 +1,5 @@
add_llvm_library(LLVMARCDesc
+ ARCInstPrinter.cpp
ARCMCTargetDesc.cpp
ARCMCAsmInfo.cpp
)
Modified: llvm/trunk/lib/Target/ARC/MCTargetDesc/LLVMBuild.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARC/MCTargetDesc/LLVMBuild.txt?rev=360488&r1=360487&r2=360488&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARC/MCTargetDesc/LLVMBuild.txt (original)
+++ llvm/trunk/lib/Target/ARC/MCTargetDesc/LLVMBuild.txt Fri May 10 17:13:01 2019
@@ -18,5 +18,5 @@
type = Library
name = ARCDesc
parent = ARC
-required_libraries = MC Support ARCAsmPrinter ARCInfo
+required_libraries = MC Support ARCInfo
add_to_library_groups = ARC
More information about the llvm-commits
mailing list