1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-26 12:43:36 +01:00

[BPF] 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: 360494
This commit is contained in:
Richard Trieu 2019-05-11 01:13:21 +00:00
parent ce030df545
commit b78f9f3417
10 changed files with 8 additions and 34 deletions

View File

@ -16,7 +16,7 @@
#include "BPFMCInstLower.h"
#include "BPFTargetMachine.h"
#include "BTFDebug.h"
#include "InstPrinter/BPFInstPrinter.h"
#include "MCTargetDesc/BPFInstPrinter.h"
#include "llvm/CodeGen/AsmPrinter.h"
#include "llvm/CodeGen/MachineConstantPool.h"
#include "llvm/CodeGen/MachineFunctionPass.h"

View File

@ -30,6 +30,5 @@ add_llvm_target(BPFCodeGen
add_subdirectory(AsmParser)
add_subdirectory(Disassembler)
add_subdirectory(InstPrinter)
add_subdirectory(MCTargetDesc)
add_subdirectory(TargetInfo)

View File

@ -1,3 +0,0 @@
add_llvm_library(LLVMBPFAsmPrinter
BPFInstPrinter.cpp
)

View File

@ -1,22 +0,0 @@
;===- ./lib/Target/BPF/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 = BPFAsmPrinter
parent = BPF
required_libraries = MC Support
add_to_library_groups = BPF

View File

@ -15,7 +15,7 @@
;===------------------------------------------------------------------------===;
[common]
subdirectories = AsmParser InstPrinter Disassembler MCTargetDesc TargetInfo
subdirectories = AsmParser Disassembler MCTargetDesc TargetInfo
[component_0]
type = TargetGroup
@ -33,7 +33,6 @@ required_libraries =
CodeGen
Core
MC
BPFAsmPrinter
BPFDesc
BPFInfo
SelectionDAG

View File

@ -10,7 +10,7 @@
//
//===----------------------------------------------------------------------===//
#include "BPFInstPrinter.h"
#include "MCTargetDesc/BPFInstPrinter.h"
#include "llvm/MC/MCAsmInfo.h"
#include "llvm/MC/MCExpr.h"
#include "llvm/MC/MCInst.h"

View File

@ -10,8 +10,8 @@
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_LIB_TARGET_BPF_INSTPRINTER_BPFINSTPRINTER_H
#define LLVM_LIB_TARGET_BPF_INSTPRINTER_BPFINSTPRINTER_H
#ifndef LLVM_LIB_TARGET_BPF_MCTARGETDESC_BPFINSTPRINTER_H
#define LLVM_LIB_TARGET_BPF_MCTARGETDESC_BPFINSTPRINTER_H
#include "llvm/MC/MCInstPrinter.h"

View File

@ -12,7 +12,7 @@
#include "MCTargetDesc/BPFMCTargetDesc.h"
#include "BPF.h"
#include "InstPrinter/BPFInstPrinter.h"
#include "MCTargetDesc/BPFInstPrinter.h"
#include "MCTargetDesc/BPFMCAsmInfo.h"
#include "llvm/MC/MCInstrAnalysis.h"
#include "llvm/MC/MCInstrInfo.h"

View File

@ -1,6 +1,7 @@
add_llvm_library(LLVMBPFDesc
BPFMCTargetDesc.cpp
BPFAsmBackend.cpp
BPFInstPrinter.cpp
BPFMCCodeEmitter.cpp
BPFELFObjectWriter.cpp
)

View File

@ -18,5 +18,5 @@
type = Library
name = BPFDesc
parent = BPF
required_libraries = MC BPFAsmPrinter BPFInfo Support
required_libraries = MC BPFInfo Support
add_to_library_groups = BPF