[PATCH] D44494: [libunwind] Support __register_frame with a full .eh_frame section

Reid Kleckner via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 14 13:53:44 PDT 2018

rnk added inline comments.

Comment at: src/UnwindCursor.hpp:53
                                                unw_word_t fde, unw_word_t mh));
+  static void iterateSections(std::function<void (pint_t section)> func);
I'm concerned that std::function might introduce runtime dependencies from libc++abi back to libc++. I think we get away with the <algorithm> include above because it's templated for the most part. Since this stuff is all in-header anyway, we could just take a non-type template parameter callable and call it directly.

  rUNW libunwind


More information about the cfe-commits mailing list