compnerd added a comment.

Does anyone use the overload with the `O` for `exports` with `nullptr` instead 
of `this`?  If not, we could just inline `this` throughout.



================
Comment at: tools/llvm-nm/llvm-nm.cpp:1230
       Error Err = Error::success();
-      for (const llvm::object::ExportEntry &Entry : MachO->exports(Err,
-                                                                   MachO)) {
+      for (const llvm::object::ExportEntry &Entry : MachO->exports(Err)) {
         bool found = false;
----------------
I think that using `auto` here instead of `llvm::object:ExportEntry` is better 
for readability.


================
Comment at: tools/llvm-objdump/MachODump.cpp:9406
   Error Err = Error::success();
-  for (const llvm::object::ExportEntry &Entry : Obj->exports(Err, Obj)) {
+  for (const llvm::object::ExportEntry &Entry : Obj->exports(Err)) {
     uint64_t Flags = Entry.flags();
----------------
Similar.


Repository:
  rL LLVM

https://reviews.llvm.org/D35961



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
  • [PATCH] D35961: [ll... Alexander Shaposhnikov via Phabricator via cfe-commits
    • [PATCH] D35961... Saleem Abdulrasool via Phabricator via cfe-commits
      • Re: [PATCH... Kevin Enderby via cfe-commits
        • Re: [P... David Blaikie via cfe-commits
          • Re... Alexander Shaposhnikov via cfe-commits
            • ... Kevin Enderby via cfe-commits
          • Re... Kevin Enderby via cfe-commits
            • ... David Blaikie via cfe-commits

Reply via email to