[PATCH] D17822: llvm-readobj: enable GNU style -g option
Rafael Ávila de Espíndola via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 4 14:32:06 PST 2016
rafael added inline comments.
================
Comment at: tools/llvm-readobj/ELFDumper.cpp:2331
@@ +2330,3 @@
+ size_t Member = 1;
+ auto Data = unwrapOrError(
+ Obj->template getSectionContentsAsArray<Elf_Word>(&Sec));
----------------
replace auto with type.
================
Comment at: tools/llvm-readobj/ELFDumper.cpp:2339
@@ +2338,3 @@
+ << " [Index] Name\n";
+ while (Member < Data.size()) {
+ auto Sec = unwrapOrError(Obj->getSection(Data[Member]));
----------------
This can be a range loop over Data.slice(1).
Repository:
rL LLVM
http://reviews.llvm.org/D17822
More information about the llvm-commits
mailing list