[PATCH] D33552: [ELF] - Make implementation of .gdb index to be more natural for futher paralleling.

Rui Ueyama via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 5 15:32:29 PDT 2017


ruiu added inline comments.


================
Comment at: ELF/SyntheticSections.cpp:1787
+
+      CuVectors[Sym->CuVectorIndex].insert((uint32_t)CuId |
+                                           (NameType.Type << 24));
----------------
If `CuId` is actually a 32-bit type, define it as `uint32_t` from the beginning.


================
Comment at: ELF/SyntheticSections.cpp:1810
+  Ret.NamesAndTypes = readPubNamesAndTypes(Dwarf, Config->IsLE);
 
+  return Ret;
----------------
Remove a blank line.


================
Comment at: ELF/SyntheticSections.cpp:1871-1872
+    for (CompilationUnitEntry &CU : D.CompilationUnits) {
+      write64le(Buf, CU.CuOffset);
+      write64le(Buf + 8, CU.CuLength);
+      Buf += 16;
----------------
Be consistent -- don't mix CU and Cu. Use `Cu` consistently in this patch.


https://reviews.llvm.org/D33552





More information about the llvm-commits mailing list