mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-01 05:01:59 +01:00
[Mips] 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: 360727
This commit is contained in:
parent
9d093a2a79
commit
e38db5c42f
@ -12,6 +12,7 @@
|
||||
#include "MCTargetDesc/MipsMCExpr.h"
|
||||
#include "MCTargetDesc/MipsMCTargetDesc.h"
|
||||
#include "MipsTargetStreamer.h"
|
||||
#include "TargetInfo/MipsTargetInfo.h"
|
||||
#include "llvm/ADT/APFloat.h"
|
||||
#include "llvm/ADT/STLExtras.h"
|
||||
#include "llvm/ADT/SmallVector.h"
|
||||
|
@ -12,6 +12,7 @@
|
||||
|
||||
#include "MCTargetDesc/MipsMCTargetDesc.h"
|
||||
#include "Mips.h"
|
||||
#include "TargetInfo/MipsTargetInfo.h"
|
||||
#include "llvm/ADT/ArrayRef.h"
|
||||
#include "llvm/MC/MCContext.h"
|
||||
#include "llvm/MC/MCDisassembler/MCDisassembler.h"
|
||||
@ -540,15 +541,6 @@ static DecodeStatus DecodeMovePRegPair(MCInst &Inst, unsigned RegPair,
|
||||
static DecodeStatus DecodeMovePOperands(MCInst &Inst, unsigned Insn,
|
||||
uint64_t Address, const void *Decoder);
|
||||
|
||||
namespace llvm {
|
||||
|
||||
Target &getTheMipselTarget();
|
||||
Target &getTheMipsTarget();
|
||||
Target &getTheMips64Target();
|
||||
Target &getTheMips64elTarget();
|
||||
|
||||
} // end namespace llvm
|
||||
|
||||
static MCDisassembler *createMipsDisassembler(
|
||||
const Target &T,
|
||||
const MCSubtargetInfo &STI,
|
||||
|
@ -17,6 +17,7 @@
|
||||
#include "MipsMCAsmInfo.h"
|
||||
#include "MipsMCNaCl.h"
|
||||
#include "MipsTargetStreamer.h"
|
||||
#include "TargetInfo/MipsTargetInfo.h"
|
||||
#include "llvm/ADT/Triple.h"
|
||||
#include "llvm/MC/MCCodeEmitter.h"
|
||||
#include "llvm/MC/MCELFStreamer.h"
|
||||
|
@ -32,11 +32,6 @@ class Triple;
|
||||
class raw_ostream;
|
||||
class raw_pwrite_stream;
|
||||
|
||||
Target &getTheMipsTarget();
|
||||
Target &getTheMipselTarget();
|
||||
Target &getTheMips64Target();
|
||||
Target &getTheMips64elTarget();
|
||||
|
||||
MCCodeEmitter *createMipsMCCodeEmitterEB(const MCInstrInfo &MCII,
|
||||
const MCRegisterInfo &MRI,
|
||||
MCContext &Ctx);
|
||||
|
@ -23,6 +23,7 @@
|
||||
#include "MipsSubtarget.h"
|
||||
#include "MipsTargetMachine.h"
|
||||
#include "MipsTargetStreamer.h"
|
||||
#include "TargetInfo/MipsTargetInfo.h"
|
||||
#include "llvm/ADT/SmallString.h"
|
||||
#include "llvm/ADT/StringRef.h"
|
||||
#include "llvm/ADT/Triple.h"
|
||||
|
@ -18,6 +18,7 @@
|
||||
#include "MipsSEISelDAGToDAG.h"
|
||||
#include "MipsSubtarget.h"
|
||||
#include "MipsTargetObjectFile.h"
|
||||
#include "TargetInfo/MipsTargetInfo.h"
|
||||
#include "llvm/ADT/Optional.h"
|
||||
#include "llvm/ADT/STLExtras.h"
|
||||
#include "llvm/ADT/StringRef.h"
|
||||
|
@ -6,8 +6,7 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "Mips.h"
|
||||
#include "llvm/IR/Module.h"
|
||||
#include "TargetInfo/MipsTargetInfo.h"
|
||||
#include "llvm/Support/TargetRegistry.h"
|
||||
using namespace llvm;
|
||||
|
||||
|
23
lib/Target/Mips/TargetInfo/MipsTargetInfo.h
Normal file
23
lib/Target/Mips/TargetInfo/MipsTargetInfo.h
Normal file
@ -0,0 +1,23 @@
|
||||
//===-- MipsTargetInfo.h - Mips 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_MIPS_TARGETINFO_MIPSTARGETINFO_H
|
||||
#define LLVM_LIB_TARGET_MIPS_TARGETINFO_MIPSTARGETINFO_H
|
||||
|
||||
namespace llvm {
|
||||
|
||||
class Target;
|
||||
|
||||
Target &getTheMipsTarget();
|
||||
Target &getTheMipselTarget();
|
||||
Target &getTheMips64Target();
|
||||
Target &getTheMips64elTarget();
|
||||
|
||||
} // namespace llvm
|
||||
|
||||
#endif // LLVM_LIB_TARGET_MIPS_TARGETINFO_MIPSTARGETINFO_H
|
Loading…
x
Reference in New Issue
Block a user