llvm.org GIT mirror llvm / a1a22af
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 Zachary Turner 4 years ago
1 changed file(s) with 3 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
8686
8787 class MockRawSymbol : public IPDBRawSymbol {
8888 public:
89 MockRawSymbol(const IPDBSession &PDBSession, PDB_SymType SymType)
90 : Session(PDBSession), Type(SymType) {}
89 MockRawSymbol(PDB_SymType SymType)
90 : Type(SymType) {}
9191
9292 void dump(raw_ostream &OS, int Indent, PDB_DumpLevel Level) const override {}
9393
273273 MOCK_SYMBOL_ACCESSOR(isVolatileType)
274274
275275 private:
276 const IPDBSession &Session;
277276 PDB_SymType Type;
278277 };
279278
338337 std::unique_ptr Session;
339338
340339 void InsertItemWithTag(PDB_SymType Tag) {
341 auto RawSymbol = llvm::make_unique(*Session, Tag);
340 auto RawSymbol = llvm::make_unique(Tag);
342341 auto Symbol = PDBSymbol::create(*Session, std::move(RawSymbol));
343342 SymbolMap.insert(std::make_pair(Tag, std::move(Symbol)));
344343 }