summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2017-11-01 13:47:55 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2017-11-01 13:47:55 +0000
commit1657f2ad994d348a9cfd7430abe110cbe6f977a4 (patch)
treed5927a72218f6f2b1de6d24b88fdbb4a164d383f
parentf7d7a59b9e3c09699b851ce7346c79474d785a79 (diff)
downloadbcm5719-llvm-1657f2ad994d348a9cfd7430abe110cbe6f977a4.tar.gz
bcm5719-llvm-1657f2ad994d348a9cfd7430abe110cbe6f977a4.zip
Fix warnings discovered by rL317076. [-Wunused-private-field]
llvm-svn: 317091
-rw-r--r--clang/include/clang/Sema/Sema.h4
-rw-r--r--llvm/include/llvm/CodeGen/PBQP/Solution.h5
-rw-r--r--llvm/include/llvm/DebugInfo/MSF/MSFBuilder.h1
-rw-r--r--llvm/include/llvm/Object/COFF.h3
-rw-r--r--llvm/include/llvm/Object/WindowsResource.h1
-rw-r--r--llvm/lib/DebugInfo/MSF/MSFBuilder.cpp3
-rw-r--r--llvm/lib/Object/WindowsResource.cpp2
-rw-r--r--llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp2
-rw-r--r--llvm/lib/Target/Hexagon/MCTargetDesc/HexagonShuffler.cpp2
-rw-r--r--llvm/lib/Target/Hexagon/MCTargetDesc/HexagonShuffler.h2
-rw-r--r--llvm/utils/TableGen/X86FoldTablesEmitter.cpp3
11 files changed, 6 insertions, 22 deletions
diff --git a/clang/include/clang/Sema/Sema.h b/clang/include/clang/Sema/Sema.h
index 0abf0f3258a..66328adad60 100644
--- a/clang/include/clang/Sema/Sema.h
+++ b/clang/include/clang/Sema/Sema.h
@@ -1724,7 +1724,6 @@ public:
ExprResult Expr;
TemplateName Template;
ParsedType Type;
- const IdentifierInfo *Keyword;
explicit NameClassification(NameClassificationKind Kind) : Kind(Kind) {}
@@ -1733,8 +1732,7 @@ public:
NameClassification(ParsedType Type) : Kind(NC_Type), Type(Type) {}
- NameClassification(const IdentifierInfo *Keyword)
- : Kind(NC_Keyword), Keyword(Keyword) {}
+ NameClassification(const IdentifierInfo *Keyword) : Kind(NC_Keyword) {}
static NameClassification Error() {
return NameClassification(NC_Error);
diff --git a/llvm/include/llvm/CodeGen/PBQP/Solution.h b/llvm/include/llvm/CodeGen/PBQP/Solution.h
index 8d5d2374679..6a247277fdf 100644
--- a/llvm/include/llvm/CodeGen/PBQP/Solution.h
+++ b/llvm/include/llvm/CodeGen/PBQP/Solution.h
@@ -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;
diff --git a/llvm/include/llvm/DebugInfo/MSF/MSFBuilder.h b/llvm/include/llvm/DebugInfo/MSF/MSFBuilder.h
index b2c8f2d1c20..19e5c31b307 100644
--- a/llvm/include/llvm/DebugInfo/MSF/MSFBuilder.h
+++ b/llvm/include/llvm/DebugInfo/MSF/MSFBuilder.h
@@ -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;
diff --git a/llvm/include/llvm/Object/COFF.h b/llvm/include/llvm/Object/COFF.h
index c5b500d87e2..3ad60b05b6f 100644
--- a/llvm/include/llvm/Object/COFF.h
+++ b/llvm/include/llvm/Object/COFF.h
@@ -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 {
diff --git a/llvm/include/llvm/Object/WindowsResource.h b/llvm/include/llvm/Object/WindowsResource.h
index 05fe10a770e..a077c82871b 100644
--- a/llvm/include/llvm/Object/WindowsResource.h
+++ b/llvm/include/llvm/Object/WindowsResource.h
@@ -126,7 +126,6 @@ private:
uint16_t NameID;
const WinResHeaderSuffix *Suffix = nullptr;
ArrayRef<uint8_t> Data;
- const WindowsResource *OwningRes = nullptr;
};
class WindowsResource : public Binary {
diff --git a/llvm/lib/DebugInfo/MSF/MSFBuilder.cpp b/llvm/lib/DebugInfo/MSF/MSFBuilder.cpp
index de5704ff665..9cd22ab7d88 100644
--- a/llvm/lib/DebugInfo/MSF/MSFBuilder.cpp
+++ b/llvm/lib/DebugInfo/MSF/MSFBuilder.cpp
@@ -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;
diff --git a/llvm/lib/Object/WindowsResource.cpp b/llvm/lib/Object/WindowsResource.cpp
index 1e3f3a173a8..693494a5084 100644
--- a/llvm/lib/Object/WindowsResource.cpp
+++ b/llvm/lib/Object/WindowsResource.cpp
@@ -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) {
diff --git a/llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp b/llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp
index a0c583a5c25..c41757d5825 100644
--- a/llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp
+++ b/llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp
@@ -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};
diff --git a/llvm/lib/Target/Hexagon/MCTargetDesc/HexagonShuffler.cpp b/llvm/lib/Target/Hexagon/MCTargetDesc/HexagonShuffler.cpp
index e5e948e4889..cdf1cabe65c 100644
--- a/llvm/lib/Target/Hexagon/MCTargetDesc/HexagonShuffler.cpp
+++ b/llvm/lib/Target/Hexagon/MCTargetDesc/HexagonShuffler.cpp
@@ -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)) {
diff --git a/llvm/lib/Target/Hexagon/MCTargetDesc/HexagonShuffler.h b/llvm/lib/Target/Hexagon/MCTargetDesc/HexagonShuffler.h
index 8d2e1b9ae5c..df3fb0a1efb 100644
--- a/llvm/lib/Target/Hexagon/MCTargetDesc/HexagonShuffler.h
+++ b/llvm/lib/Target/Hexagon/MCTargetDesc/HexagonShuffler.h
@@ -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.
diff --git a/llvm/utils/TableGen/X86FoldTablesEmitter.cpp b/llvm/utils/TableGen/X86FoldTablesEmitter.cpp
index 2fefe0a92aa..3ea7d28a6d5 100644
--- a/llvm/utils/TableGen/X86FoldTablesEmitter.cpp
+++ b/llvm/utils/TableGen/X86FoldTablesEmitter.cpp
@@ -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;
OpenPOWER on IntegriCloud