This revision was automatically updated to reflect the committed changes.
Closed by commit rL330199: Add a command line option
'fregister_global_dtors_with_atexit' to (authored by ahatanak,
committed by ).
Herald added a subscriber: llvm-commits.
Changed prior to commit:
https://reviews.llvm.o
rjmccall accepted this revision.
rjmccall added a comment.
This revision is now accepted and ready to land.
Thank you. Minor request and then LGTM.
Comment at: lib/CodeGen/ItaniumCXXABI.cpp:2202
+// __attribute__((destructor)) in a constructor function.
+addr = llvm::C
ahatanak added inline comments.
Comment at: include/clang/Driver/Options.td:1613
+def fregister_dtor_with_atexit : Flag<["-"], "fregister-dtor-with-atexit">,
Group, Flags<[CC1Option]>,
+ HelpText<"Use atexit or __cxa_atexit to register destructors">;
def fuse_init_array : Flag
ahatanak updated this revision to Diff 142597.
ahatanak marked 4 inline comments as done.
ahatanak retitled this revision from "Add a command line option
'fregister_dtor_with_atexit' to register destructor functions annotated
with __attribute__((destructor)) using __cxa_atexit or atexit."