mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +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:
parent
1aff655290
commit
ad51f676a1
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -19,8 +19,6 @@ namespace llvm {
|
||||
|
||||
class Target;
|
||||
|
||||
Target &getTheARCTarget();
|
||||
|
||||
} // end namespace llvm
|
||||
|
||||
// Defines symbolic names for ARC registers. This defines a mapping from
|
||||
|
@ -6,7 +6,7 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "ARC.h"
|
||||
#include "TargetInfo/ARCTargetInfo.h"
|
||||
#include "llvm/Support/TargetRegistry.h"
|
||||
|
||||
using namespace llvm;
|
||||
|
20
lib/Target/ARC/TargetInfo/ARCTargetInfo.h
Normal file
20
lib/Target/ARC/TargetInfo/ARCTargetInfo.h
Normal 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
|
Loading…
Reference in New Issue
Block a user