[llvm] r230216 - [llvm-pdbdump] Remove unused variables.
Benjamin Kramer
benny.kra at googlemail.com
Mon Feb 23 03:33:55 PST 2015
Author: d0k
Date: Mon Feb 23 05:33:54 2015
New Revision: 230216
URL: http://llvm.org/viewvc/llvm-project?rev=230216&view=rev
Log:
[llvm-pdbdump] Remove unused variables.
Modified:
llvm/trunk/tools/llvm-pdbdump/ClassDefinitionDumper.cpp
llvm/trunk/tools/llvm-pdbdump/VariableDumper.cpp
Modified: llvm/trunk/tools/llvm-pdbdump/ClassDefinitionDumper.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-pdbdump/ClassDefinitionDumper.cpp?rev=230216&r1=230215&r2=230216&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-pdbdump/ClassDefinitionDumper.cpp (original)
+++ llvm/trunk/tools/llvm-pdbdump/ClassDefinitionDumper.cpp Mon Feb 23 05:33:54 2015
@@ -55,7 +55,6 @@ void ClassDefinitionDumper::start(const
if (isa<PDBSymbolTypeBaseClass>(*Child))
continue;
- SymbolGroup *InsertGroup = nullptr;
auto &AccessGroup = Groups.find((int)Access)->second;
if (auto Func = dyn_cast<PDBSymbolFunc>(Child.get())) {
Modified: llvm/trunk/tools/llvm-pdbdump/VariableDumper.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-pdbdump/VariableDumper.cpp?rev=230216&r1=230215&r2=230216&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-pdbdump/VariableDumper.cpp (original)
+++ llvm/trunk/tools/llvm-pdbdump/VariableDumper.cpp Mon Feb 23 05:33:54 2015
@@ -45,12 +45,10 @@ void VariableDumper::start(const PDBSymb
dumpSymbolTypeAndName(*VarType, Var.getName(), OS);
OS << "[" << Var.getValue() << "]";
break;
- case PDB_LocType::ThisRel: {
- int Offset = Var.getOffset();
+ case PDB_LocType::ThisRel:
OS << "+" << format_hex(Var.getOffset(), 4) << " ";
dumpSymbolTypeAndName(*VarType, Var.getName(), OS);
break;
- }
default:
break;
OS << "unknown(" << LocType << ") " << Var.getName();
@@ -72,7 +70,6 @@ void VariableDumper::dump(const PDBSymbo
void VariableDumper::dump(const PDBSymbolTypePointer &Symbol, raw_ostream &OS,
int Indent) {
- uint32_t PointeeId = Symbol.getTypeId();
auto PointeeType = Symbol.getPointeeType();
if (!PointeeType)
return;
@@ -106,7 +103,6 @@ void VariableDumper::dump(const PDBSymbo
void VariableDumper::dumpSymbolTypeAndName(const PDBSymbol &Type,
StringRef Name, raw_ostream &OS) {
if (auto *ArrayType = dyn_cast<PDBSymbolTypeArray>(&Type)) {
- bool Done = false;
std::string IndexSpec;
raw_string_ostream IndexStream(IndexSpec);
std::unique_ptr<PDBSymbol> ElementType = ArrayType->getElementType();
More information about the llvm-commits
mailing list