[static initializers] Emit global_ctors and global_dtors in reverse order when .ctors...
authorWolfgang Pieb <wolfgang_pieb@playstation.sony.com>
Wed, 2 Jun 2021 18:37:35 +0000 (11:37 -0700)
committerWolfgang Pieb <wolfgang_pieb@playstation.sony.com>
Thu, 10 Jun 2021 23:44:47 +0000 (16:44 -0700)
commit5a1589fc6d1131e6d73c498cc5987433d1c5e098
tree410d3138216863953e325ff38e15b0c44a879818
parent119965865cc730060e4cc95690ee7dab91c2c440
[static initializers] Emit global_ctors and global_dtors in reverse order when .ctors/.dtors are used.

Reviewed By: rnk, MaskRay, efriedma

Differential Revision: https://reviews.llvm.org/D103495
llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
llvm/test/CodeGen/SPARC/constructor.ll
llvm/test/CodeGen/X86/2011-08-29-InitOrder.ll
llvm/test/CodeGen/X86/constructor.ll