================
@@ -257,5 +258,53 @@ inline void EHScopeStack::popCatch() {
deallocate(EHCatchScope::getSizeForNumHandlers(scope.getNumHandlers()));
}
+/// The exceptions personality for a function.
+struct EHPersonality {
----------------
AmrDeveloper wrote:
Yes, I think it's possible and can also be done by one class with
`CodeGenModule` and `CodeGenFunction` as a template parameters, and we can
specialize the `::get` method twice for both codegens 🤔.
I think that this case is also a good example for adding a shared codegen
component.
https://github.com/llvm/llvm-project/pull/164883
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits