[PATCH] D136879: [LLD] [COFF] Include "rust_eh_personality" among the known personality functions

Martin Storsjö via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 28 03:34:33 PDT 2022


This revision was automatically updated to reflect the committed changes.
Closed by commit rG888d9e671fb5: [LLD] [COFF] Include "rust_eh_personality" among the known personality functions (authored by mstorsjo).

Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D136879

Files:
  lld/COFF/Driver.cpp


Index: lld/COFF/Driver.cpp
===================================================================
--- lld/COFF/Driver.cpp
+++ lld/COFF/Driver.cpp
@@ -2415,7 +2415,8 @@
       // For now, just manually try to retain the known possible personality
       // functions. This doesn't bring in more object files, but only marks
       // functions that already have been included to be retained.
-      for (const char *n : {"__gxx_personality_v0", "__gcc_personality_v0"}) {
+      for (const char *n : {"__gxx_personality_v0", "__gcc_personality_v0",
+                            "rust_eh_personality"}) {
         Defined *d = dyn_cast_or_null<Defined>(ctx.symtab.findUnderscore(n));
         if (d && !d->isGCRoot) {
           d->isGCRoot = true;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D136879.471479.patch
Type: text/x-patch
Size: 744 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221028/a78bdb78/attachment.bin>


More information about the llvm-commits mailing list