Skip to content

Commit

Permalink
[ARC] Move InstPrinter files to MCTargetDesc. NFC
Browse files Browse the repository at this point in the history
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: 360488
  • Loading branch information
Weverything committed May 11, 2019

Unverified

This user has not yet uploaded their public signing key.
1 parent c0bd7bd commit dcf1ea0
Showing 10 changed files with 5 additions and 31 deletions.
2 changes: 1 addition & 1 deletion llvm/lib/Target/ARC/ARCAsmPrinter.cpp
Original file line number Diff line number Diff line change
@@ -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"
1 change: 0 additions & 1 deletion llvm/lib/Target/ARC/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -27,6 +27,5 @@ add_llvm_target(ARCCodeGen
)

add_subdirectory(Disassembler)
add_subdirectory(InstPrinter)
add_subdirectory(MCTargetDesc)
add_subdirectory(TargetInfo)
3 changes: 0 additions & 3 deletions llvm/lib/Target/ARC/InstPrinter/CMakeLists.txt

This file was deleted.

22 changes: 0 additions & 22 deletions llvm/lib/Target/ARC/InstPrinter/LLVMBuild.txt

This file was deleted.

3 changes: 1 addition & 2 deletions llvm/lib/Target/ARC/LLVMBuild.txt
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion llvm/lib/Target/ARC/MCTargetDesc/ARCMCTargetDesc.cpp
Original file line number Diff line number Diff line change
@@ -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"
1 change: 1 addition & 0 deletions llvm/lib/Target/ARC/MCTargetDesc/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
add_llvm_library(LLVMARCDesc
ARCInstPrinter.cpp
ARCMCTargetDesc.cpp
ARCMCAsmInfo.cpp
)
2 changes: 1 addition & 1 deletion llvm/lib/Target/ARC/MCTargetDesc/LLVMBuild.txt
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit dcf1ea0

Please sign in to comment.