diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2015-02-23 11:33:54 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2015-02-23 11:33:54 +0000 |
commit | d0be1704148b06e6ed02298ff9302583ab2c36a2 (patch) | |
tree | 90f2f598c6c5fdb23e53999b64662787cec34671 /llvm/tools/llvm-pdbdump/VariableDumper.cpp | |
parent | 934967148853060a165789b31b174fe3aa23d727 (diff) | |
download | bcm5719-llvm-d0be1704148b06e6ed02298ff9302583ab2c36a2.tar.gz bcm5719-llvm-d0be1704148b06e6ed02298ff9302583ab2c36a2.zip |
[llvm-pdbdump] Remove unused variables.
llvm-svn: 230216
Diffstat (limited to 'llvm/tools/llvm-pdbdump/VariableDumper.cpp')
-rw-r--r-- | llvm/tools/llvm-pdbdump/VariableDumper.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/llvm/tools/llvm-pdbdump/VariableDumper.cpp b/llvm/tools/llvm-pdbdump/VariableDumper.cpp index 31348ef1e17..913cfee6622 100644 --- a/llvm/tools/llvm-pdbdump/VariableDumper.cpp +++ b/llvm/tools/llvm-pdbdump/VariableDumper.cpp @@ -45,12 +45,10 @@ void VariableDumper::start(const PDBSymbolData &Var, raw_ostream &OS, 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 PDBSymbolTypeFunctionSig &Symbol, 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 PDBSymbolTypeUDT &Symbol, raw_ostream &OS, 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(); |