[llvm] [CodeGen] Sort .ctors in reverse on MinGW just like on other platforms (PR #68570)

via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 10 00:38:43 PDT 2023


alvinhochun wrote:

Not quite sure if putting a target-specific special case in emitXXStructorList is really the best way to handle it. The condition also doesn't exactly match what `TargetLoweringObjectFileCOFF` checks for: https://github.com/llvm/llvm-project/blob/f74e9f86a383868df66ae4f2e62589f9dfca1a0b/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp#L1928

Are there any other targets that may need the fix? I guess Cygwin could but I don't know if LLVM even works for this target.

https://github.com/llvm/llvm-project/pull/68570


More information about the llvm-commits mailing list