Fix warning due to unused private member variable.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@228774 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Zachary Turner 2015-02-11 00:33:00 +00:00
parent c6b4bedeb6
commit a1a22af397

View File

@ -87,8 +87,8 @@ class MockSession : public IPDBSession {
class MockRawSymbol : public IPDBRawSymbol {
public:
MockRawSymbol(const IPDBSession &PDBSession, PDB_SymType SymType)
: Session(PDBSession), Type(SymType) {}
MockRawSymbol(PDB_SymType SymType)
: Type(SymType) {}
void dump(raw_ostream &OS, int Indent, PDB_DumpLevel Level) const override {}
@ -274,7 +274,6 @@ public:
MOCK_SYMBOL_ACCESSOR(isVolatileType)
private:
const IPDBSession &Session;
PDB_SymType Type;
};
@ -339,7 +338,7 @@ private:
std::unique_ptr<IPDBSession> Session;
void InsertItemWithTag(PDB_SymType Tag) {
auto RawSymbol = llvm::make_unique<MockRawSymbol>(*Session, Tag);
auto RawSymbol = llvm::make_unique<MockRawSymbol>(Tag);
auto Symbol = PDBSymbol::create(*Session, std::move(RawSymbol));
SymbolMap.insert(std::make_pair(Tag, std::move(Symbol)));
}