mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 02:52:53 +02:00
[AVR] 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: 360493
This commit is contained in:
parent
6f91878254
commit
ce030df545
@ -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"
|
||||
|
@ -32,6 +32,5 @@ add_llvm_target(AVRCodeGen
|
||||
|
||||
add_subdirectory(AsmParser)
|
||||
add_subdirectory(Disassembler)
|
||||
add_subdirectory(InstPrinter)
|
||||
add_subdirectory(MCTargetDesc)
|
||||
add_subdirectory(TargetInfo)
|
||||
|
@ -1,8 +0,0 @@
|
||||
include_directories( ${CMAKE_CURRENT_BINARY_DIR}/..
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/.. )
|
||||
|
||||
add_llvm_library(LLVMAVRAsmPrinter
|
||||
AVRInstPrinter.cpp
|
||||
)
|
||||
|
||||
add_dependencies(LLVMAVRAsmPrinter AVRCommonTableGen)
|
@ -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
|
@ -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
|
||||
|
||||
|
@ -11,11 +11,11 @@
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#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"
|
||||
|
@ -2,6 +2,7 @@ add_llvm_library(LLVMAVRDesc
|
||||
AVRAsmBackend.cpp
|
||||
AVRELFObjectWriter.cpp
|
||||
AVRELFStreamer.cpp
|
||||
AVRInstPrinter.cpp
|
||||
AVRMCAsmInfo.cpp
|
||||
AVRMCCodeEmitter.cpp
|
||||
AVRMCELFStreamer.cpp
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user