[PATCH] D91455: [XCOFF][AIX] Generate LSDA data and compact unwind section on AIX

David Tenty via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 1 08:43:48 PST 2020


daltenty added inline comments.


================
Comment at: llvm/lib/CodeGen/AsmPrinter/AIXException.cpp:68
+    Per = dyn_cast<Function>(F.getPersonalityFn()->stripPointerCasts());
+  bool EmitEHBlock =
+      HasLandingPads || (F.hasPersonalityFn() &&
----------------
This logic seems very similar to the base class. 

The pattern there and in other instance of EHStreamer seems to be to make these queries in beginFunction, store the results in a member and just early exit if we have nothing to emit in endFunction, etc. Is that something we should be doing here? (e.g. presumably the traceback emission will want to know if we plan to emit anything so it can emit the appropriate info)


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D91455/new/

https://reviews.llvm.org/D91455



More information about the llvm-commits mailing list