mirror of
https://github.com/RPCS3/llvm.git
synced 2025-03-04 08:37:45 +00:00
Fix warnings discovered by rL317076. [-Wunused-private-field]
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@317091 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
800f768b3d
commit
598658d792
@ -29,11 +29,6 @@ namespace PBQP {
|
||||
using SelectionsMap = std::map<GraphBase::NodeId, unsigned>;
|
||||
SelectionsMap selections;
|
||||
|
||||
unsigned r0Reductions = 0;
|
||||
unsigned r1Reductions = 0;
|
||||
unsigned r2Reductions = 0;
|
||||
unsigned rNReductions = 0;
|
||||
|
||||
public:
|
||||
/// \brief Initialise an empty solution.
|
||||
Solution() = default;
|
||||
|
@ -128,7 +128,6 @@ private:
|
||||
uint32_t FreePageMap;
|
||||
uint32_t Unknown1 = 0;
|
||||
uint32_t BlockSize;
|
||||
uint32_t MininumBlocks;
|
||||
uint32_t BlockMapAddr;
|
||||
BitVector FreeBlocks;
|
||||
std::vector<uint32_t> DirectoryBlocks;
|
||||
|
@ -1144,7 +1144,7 @@ public:
|
||||
BaseRelocRef() = default;
|
||||
BaseRelocRef(const coff_base_reloc_block_header *Header,
|
||||
const COFFObjectFile *Owner)
|
||||
: Header(Header), Index(0), OwningObject(Owner) {}
|
||||
: Header(Header), Index(0) {}
|
||||
|
||||
bool operator==(const BaseRelocRef &Other) const;
|
||||
void moveNext();
|
||||
@ -1155,7 +1155,6 @@ public:
|
||||
private:
|
||||
const coff_base_reloc_block_header *Header;
|
||||
uint32_t Index;
|
||||
const COFFObjectFile *OwningObject = nullptr;
|
||||
};
|
||||
|
||||
class ResourceSectionRef {
|
||||
|
@ -126,7 +126,6 @@ private:
|
||||
uint16_t NameID;
|
||||
const WinResHeaderSuffix *Suffix = nullptr;
|
||||
ArrayRef<uint8_t> Data;
|
||||
const WindowsResource *OwningRes = nullptr;
|
||||
};
|
||||
|
||||
class WindowsResource : public Binary {
|
||||
|
@ -36,8 +36,7 @@ MSFBuilder::MSFBuilder(uint32_t BlockSize, uint32_t MinBlockCount, bool CanGrow,
|
||||
BumpPtrAllocator &Allocator)
|
||||
: Allocator(Allocator), IsGrowable(CanGrow),
|
||||
FreePageMap(kDefaultFreePageMap), BlockSize(BlockSize),
|
||||
MininumBlocks(MinBlockCount), BlockMapAddr(kDefaultBlockMapAddr),
|
||||
FreeBlocks(MinBlockCount, true) {
|
||||
BlockMapAddr(kDefaultBlockMapAddr), FreeBlocks(MinBlockCount, true) {
|
||||
FreeBlocks[kSuperBlockBlock] = false;
|
||||
FreeBlocks[kFreePageMap0Block] = false;
|
||||
FreeBlocks[kFreePageMap1Block] = false;
|
||||
|
@ -65,7 +65,7 @@ Expected<ResourceEntryRef> WindowsResource::getHeadEntry() {
|
||||
|
||||
ResourceEntryRef::ResourceEntryRef(BinaryStreamRef Ref,
|
||||
const WindowsResource *Owner)
|
||||
: Reader(Ref), OwningRes(Owner) {}
|
||||
: Reader(Ref) {}
|
||||
|
||||
Expected<ResourceEntryRef>
|
||||
ResourceEntryRef::create(BinaryStreamRef BSR, const WindowsResource *Owner) {
|
||||
|
@ -303,9 +303,7 @@ public:
|
||||
private:
|
||||
bool WaitAtBeginning = false;
|
||||
bool RevisitLoop = false;
|
||||
bool ValidLoop = false;
|
||||
bool MixedExpTypes = false;
|
||||
MachineLoop *LoopRegion = nullptr;
|
||||
int32_t PostOrder = 0;
|
||||
MachineInstr *Waitcnt = nullptr;
|
||||
int32_t ScoreLBs[NUM_INST_CNTS] = {0};
|
||||
|
@ -133,7 +133,7 @@ void HexagonCVIResource::SetupTUL(TypeUnitsAndLanes *TUL, StringRef CPU) {
|
||||
HexagonCVIResource::HexagonCVIResource(TypeUnitsAndLanes *TUL,
|
||||
MCInstrInfo const &MCII, unsigned s,
|
||||
MCInst const *id)
|
||||
: HexagonResource(s), TUL(TUL) {
|
||||
: HexagonResource(s) {
|
||||
unsigned T = HexagonMCInstrInfo::getType(MCII, *id);
|
||||
|
||||
if (TUL->count(T)) {
|
||||
|
@ -77,8 +77,6 @@ private:
|
||||
CVI_MPY1 = 1 << 3
|
||||
};
|
||||
|
||||
TypeUnitsAndLanes *TUL;
|
||||
|
||||
// Count of adjacent slots that the insn requires to be executed.
|
||||
unsigned Lanes;
|
||||
// Flag whether the insn is a load or a store.
|
||||
|
@ -317,11 +317,10 @@ getAltRegInst(const CodeGenInstruction *I, const RecordKeeper &Records,
|
||||
// matches the EVEX instruction of this object.
|
||||
class IsMatch {
|
||||
const CodeGenInstruction *MemInst;
|
||||
const RecordKeeper &Records;
|
||||
|
||||
public:
|
||||
IsMatch(const CodeGenInstruction *Inst, const RecordKeeper &Records)
|
||||
: MemInst(Inst), Records(Records) {}
|
||||
: MemInst(Inst) {}
|
||||
|
||||
bool operator()(const CodeGenInstruction *RegInst) {
|
||||
Record *MemRec = MemInst->TheDef;
|
||||
|
Loading…
x
Reference in New Issue
Block a user