1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 02:52:53 +02:00

Fix warnings discovered by rL317076. [-Wunused-private-field]

llvm-svn: 317091
This commit is contained in:
NAKAMURA Takumi 2017-11-01 13:47:55 +00:00
parent b9c8a917a4
commit 6e3809e6fd
10 changed files with 5 additions and 19 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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 {

View File

@ -126,7 +126,6 @@ private:
uint16_t NameID;
const WinResHeaderSuffix *Suffix = nullptr;
ArrayRef<uint8_t> Data;
const WindowsResource *OwningRes = nullptr;
};
class WindowsResource : public Binary {

View File

@ -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;

View File

@ -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) {

View File

@ -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};

View File

@ -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)) {

View File

@ -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.

View File

@ -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;