[llvm-readobj] - Fix a warning.
authorGeorgii Rymar <grimar@accesssoftek.com>
Thu, 26 Nov 2020 07:22:29 +0000 (10:22 +0300)
committerGeorgii Rymar <grimar@accesssoftek.com>
Thu, 26 Nov 2020 07:24:24 +0000 (10:24 +0300)
commitc3673ea65df576535c85397dfe36624bd09fe47b
treed720393dabd523d7a3122b09c56bb642b22e455c
parent14f2ad0e3cc54d5eb254b545a469e8ffdb62b119
[llvm-readobj] - Fix a warning.

This addresses post review comment for D92018.

The warning was:

```
error: loop variable 'Note' is always a copy because the range of type 'iterator_range<llvm::object::ELFFile<llvm::object::ELFType<llvm::support::big, true> >::Elf_Note_Iterator>' (aka 'iterator_range<Elf_Note_Iterator_Impl<ELFType<(llvm::support::endianness)0U, true> > >') does not return a reference [-Werror,-Wrange-loop-analysis]
      for (const typename ELFT::Note &Note : Obj.notes(S, Err))
```
llvm/tools/llvm-readobj/ELFDumper.cpp