[llvm] r228774 - Fix warning due to unused private member variable.
Zachary Turner
zturner at google.com
Tue Feb 10 16:33:01 PST 2015
Author: zturner
Date: Tue Feb 10 18:33:00 2015
New Revision: 228774
URL: http://llvm.org/viewvc/llvm-project?rev=228774&view=rev
Log:
Fix warning due to unused private member variable.
Modified:
llvm/trunk/unittests/DebugInfo/PDB/PDBApiTest.cpp
Modified: llvm/trunk/unittests/DebugInfo/PDB/PDBApiTest.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/DebugInfo/PDB/PDBApiTest.cpp?rev=228774&r1=228773&r2=228774&view=diff
==============================================================================
--- llvm/trunk/unittests/DebugInfo/PDB/PDBApiTest.cpp (original)
+++ llvm/trunk/unittests/DebugInfo/PDB/PDBApiTest.cpp Tue Feb 10 18:33:00 2015
@@ -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)));
}
More information about the llvm-commits
mailing list