Remove a useless declarations (found by scan-build)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185709 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Sylvestre Ledru 2013-07-05 15:58:12 +00:00
parent 71804149a3
commit 23191804e8
2 changed files with 0 additions and 2 deletions

View File

@ -294,7 +294,6 @@ Archive::symbol_iterator Archive::end_symbols() const {
uint32_t symbol_count = 0; uint32_t symbol_count = 0;
if (kind() == K_GNU) { if (kind() == K_GNU) {
symbol_count = *reinterpret_cast<const support::ubig32_t*>(buf); symbol_count = *reinterpret_cast<const support::ubig32_t*>(buf);
buf += sizeof(uint32_t) + (symbol_count * (sizeof(uint32_t)));
} else if (kind() == K_BSD) { } else if (kind() == K_BSD) {
llvm_unreachable("BSD archive format is not supported"); llvm_unreachable("BSD archive format is not supported");
} else { } else {

View File

@ -868,7 +868,6 @@ void ExtAddrMode::print(raw_ostream &OS) const {
OS << (NeedPlus ? " + " : "") OS << (NeedPlus ? " + " : "")
<< Scale << "*"; << Scale << "*";
WriteAsOperand(OS, ScaledReg, /*PrintType=*/false); WriteAsOperand(OS, ScaledReg, /*PrintType=*/false);
NeedPlus = true;
} }
OS << ']'; OS << ']';