mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-20 03:18:09 +00:00
[Mips] Fix some Include What You Use warnings; other minor fixes (NFC).
This is preparation to reduce MCExpr.h dependencies. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@294069 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
cdc36e9281
commit
591fad1982
@ -8,9 +8,13 @@
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "MipsELFStreamer.h"
|
||||
#include "MipsOptionRecord.h"
|
||||
#include "MipsTargetStreamer.h"
|
||||
#include "llvm/MC/MCAssembler.h"
|
||||
#include "llvm/MC/MCContext.h"
|
||||
#include "llvm/MC/MCInst.h"
|
||||
#include "llvm/MC/MCSymbolELF.h"
|
||||
#include "llvm/Support/Casting.h"
|
||||
#include "llvm/Support/ELF.h"
|
||||
|
||||
using namespace llvm;
|
||||
|
@ -1,4 +1,4 @@
|
||||
//===-------- MipsELFStreamer.h - ELF Object Output -----------------------===//
|
||||
//===- MipsELFStreamer.h - ELF Object Output --------------------*- C++ -*-===//
|
||||
//
|
||||
// The LLVM Compiler Infrastructure
|
||||
//
|
||||
@ -21,6 +21,7 @@
|
||||
#include <memory>
|
||||
|
||||
namespace llvm {
|
||||
|
||||
class MCAsmBackend;
|
||||
class MCCodeEmitter;
|
||||
class MCContext;
|
||||
@ -31,12 +32,10 @@ class MipsELFStreamer : public MCELFStreamer {
|
||||
MipsRegInfoRecord *RegInfoRecord;
|
||||
SmallVector<MCSymbol*, 4> Labels;
|
||||
|
||||
|
||||
public:
|
||||
MipsELFStreamer(MCContext &Context, MCAsmBackend &MAB, raw_pwrite_stream &OS,
|
||||
MCCodeEmitter *Emitter)
|
||||
: MCELFStreamer(Context, MAB, OS, Emitter) {
|
||||
|
||||
RegInfoRecord = new MipsRegInfoRecord(this, Context);
|
||||
MipsOptionRecords.push_back(
|
||||
std::unique_ptr<MipsRegInfoRecord>(RegInfoRecord));
|
||||
@ -72,5 +71,6 @@ public:
|
||||
MCELFStreamer *createMipsELFStreamer(MCContext &Context, MCAsmBackend &MAB,
|
||||
raw_pwrite_stream &OS,
|
||||
MCCodeEmitter *Emitter, bool RelaxAll);
|
||||
} // namespace llvm.
|
||||
#endif
|
||||
} // end namespace llvm
|
||||
|
||||
#endif // LLVM_LIB_TARGET_MIPS_MCTARGETDESC_MIPSELFSTREAMER_H
|
||||
|
@ -11,9 +11,15 @@
|
||||
#include "llvm/MC/MCAsmInfo.h"
|
||||
#include "llvm/MC/MCAssembler.h"
|
||||
#include "llvm/MC/MCContext.h"
|
||||
#include "llvm/MC/MCObjectStreamer.h"
|
||||
#include "llvm/MC/MCSymbolELF.h"
|
||||
#include "llvm/MC/MCStreamer.h"
|
||||
#include "llvm/MC/MCValue.h"
|
||||
#include "llvm/Support/Casting.h"
|
||||
#include "llvm/Support/ELF.h"
|
||||
#include "llvm/Support/ErrorHandling.h"
|
||||
#include "llvm/Support/MathExtras.h"
|
||||
#include "llvm/Support/raw_ostream.h"
|
||||
#include <cstdint>
|
||||
|
||||
using namespace llvm;
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
//===-- MipsMCExpr.h - Mips specific MC expression classes ------*- C++ -*-===//
|
||||
//===- MipsMCExpr.h - Mips specific MC expression classes -------*- C++ -*-===//
|
||||
//
|
||||
// The LLVM Compiler Infrastructure
|
||||
//
|
||||
@ -70,6 +70,7 @@ public:
|
||||
bool evaluateAsRelocatableImpl(MCValue &Res, const MCAsmLayout *Layout,
|
||||
const MCFixup *Fixup) const override;
|
||||
void visitUsedExpr(MCStreamer &Streamer) const override;
|
||||
|
||||
MCFragment *findAssociatedFragment() const override {
|
||||
return getSubExpr()->findAssociatedFragment();
|
||||
}
|
||||
@ -86,6 +87,7 @@ public:
|
||||
return isGpOff(Kind);
|
||||
}
|
||||
};
|
||||
|
||||
} // end namespace llvm
|
||||
|
||||
#endif
|
||||
#endif // LLVM_LIB_TARGET_MIPS_MCTARGETDESC_MIPSMCEXPR_H
|
||||
|
Loading…
x
Reference in New Issue
Block a user