forked from OSchip/llvm-project
				
			Remove useless variables and declarations.
llvm-svn: 296695
This commit is contained in:
		
							parent
							
								
									97d7a74b35
								
							
						
					
					
						commit
						aab18c0cfc
					
				| 
						 | 
					@ -122,10 +122,9 @@ GdbIndexBuilder<ELFT>::readPubNamesAndTypes() {
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
std::pair<bool, GdbSymbol *> GdbHashTab::add(uint32_t Hash, size_t Offset) {
 | 
					std::pair<bool, GdbSymbol *> GdbHashTab::add(uint32_t Hash, size_t Offset) {
 | 
				
			||||||
  GdbSymbol *&Sym = Map[{Hash, Offset}];
 | 
					  GdbSymbol *&Sym = Map[Offset];
 | 
				
			||||||
  if (Sym)
 | 
					  if (Sym)
 | 
				
			||||||
    return {false, Sym};
 | 
					    return {false, Sym};
 | 
				
			||||||
  ++Size;
 | 
					 | 
				
			||||||
  Sym = make<GdbSymbol>(Hash, Offset);
 | 
					  Sym = make<GdbSymbol>(Hash, Offset);
 | 
				
			||||||
  return {true, Sym};
 | 
					  return {true, Sym};
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -75,13 +75,8 @@ public:
 | 
				
			||||||
  GdbSymbol *getSymbol(size_t I) { return Table[I]; }
 | 
					  GdbSymbol *getSymbol(size_t I) { return Table[I]; }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
private:
 | 
					private:
 | 
				
			||||||
  GdbSymbol **findSlot(uint32_t Hash, size_t Offset);
 | 
					  llvm::DenseMap<size_t, GdbSymbol *> Map;
 | 
				
			||||||
 | 
					 | 
				
			||||||
  llvm::DenseMap<std::pair<uint32_t, size_t>, GdbSymbol *> Map;
 | 
					 | 
				
			||||||
  std::vector<GdbSymbol *> Table;
 | 
					  std::vector<GdbSymbol *> Table;
 | 
				
			||||||
 | 
					 | 
				
			||||||
  // Size keeps the amount of filled entries in Table.
 | 
					 | 
				
			||||||
  size_t Size = 0;
 | 
					 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
} // namespace elf
 | 
					} // namespace elf
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1730,9 +1730,7 @@ template <class ELFT> void GdbIndexSection<ELFT>::readDwarf(InputSection *Sec) {
 | 
				
			||||||
      continue;
 | 
					      continue;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    std::vector<std::pair<uint32_t, uint8_t>> &CuVec =
 | 
					    CuVectors[Sym->CuVectorIndex].push_back({CuId, Pair.second});
 | 
				
			||||||
        CuVectors[Sym->CuVectorIndex];
 | 
					 | 
				
			||||||
    CuVec.push_back({CuId, Pair.second});
 | 
					 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue