1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 10:42:39 +01:00

[ARC] Create a TargetInfo header. NFC

Move the declarations of getThe<Name>Target() functions into a new header in
TargetInfo and make users of these functions include this new header.
This fixes a layering problem.

llvm-svn: 360716
This commit is contained in:
Richard Trieu 2019-05-14 22:06:04 +00:00
parent 1aff655290
commit ad51f676a1
7 changed files with 25 additions and 3 deletions

View File

@ -18,6 +18,7 @@
#include "ARCTargetMachine.h"
#include "ARCTargetStreamer.h"
#include "MCTargetDesc/ARCInstPrinter.h"
#include "TargetInfo/ARCTargetInfo.h"
#include "llvm/ADT/SmallString.h"
#include "llvm/ADT/StringExtras.h"
#include "llvm/CodeGen/AsmPrinter.h"

View File

@ -12,6 +12,7 @@
#include "ARCTargetMachine.h"
#include "ARC.h"
#include "ARCTargetTransformInfo.h"
#include "TargetInfo/ARCTargetInfo.h"
#include "llvm/CodeGen/Passes.h"
#include "llvm/CodeGen/TargetLoweringObjectFileImpl.h"
#include "llvm/CodeGen/TargetPassConfig.h"

View File

@ -14,6 +14,7 @@
#include "ARC.h"
#include "ARCRegisterInfo.h"
#include "MCTargetDesc/ARCMCTargetDesc.h"
#include "TargetInfo/ARCTargetInfo.h"
#include "llvm/MC/MCContext.h"
#include "llvm/MC/MCDisassembler/MCDisassembler.h"
#include "llvm/MC/MCFixedLenDisassembler.h"

View File

@ -14,6 +14,7 @@
#include "ARCInstPrinter.h"
#include "ARCMCAsmInfo.h"
#include "ARCTargetStreamer.h"
#include "TargetInfo/ARCTargetInfo.h"
#include "llvm/MC/MCDwarf.h"
#include "llvm/MC/MCInstrInfo.h"
#include "llvm/MC/MCRegisterInfo.h"

View File

@ -19,8 +19,6 @@ namespace llvm {
class Target;
Target &getTheARCTarget();
} // end namespace llvm
// Defines symbolic names for ARC registers. This defines a mapping from

View File

@ -6,7 +6,7 @@
//
//===----------------------------------------------------------------------===//
#include "ARC.h"
#include "TargetInfo/ARCTargetInfo.h"
#include "llvm/Support/TargetRegistry.h"
using namespace llvm;

View File

@ -0,0 +1,20 @@
//===- ARCTargetInfo.h - ARC Target Implementation ------------- *- C++ -*-===//
//
// 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
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_LIB_TARGET_ARC_TARGETINFO_ARCTARGETINFO_H
#define LLVM_LIB_TARGET_ARC_TARGETINFO_ARCTARGETINFO_H
namespace llvm {
class Target;
Target &getTheARCTarget();
} // namespace llvm
#endif // LLVM_LIB_TARGET_ARC_TARGETINFO_ARCTARGETINFO_H