summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/X86/2011-08-29-InitOrder.ll
Commit message (Collapse)AuthorAgeFilesLines
* [IR] Disallow llvm.global_ctors and llvm.global_dtors of the 2-field form in ↵Fangrui Song2019-05-151-2/+2
| | | | | | | | | | | | | | | | | | | | textual format The 3-field form was introduced by D3499 in 2014 and the legacy 2-field form was planned to be removed in LLVM 4.0 For the textual format, this patch migrates the existing 2-field form to use the 3-field form and deletes the compatibility code. test/Verifier/global-ctors-2.ll checks we have a friendly error message. For bitcode, lib/IR/AutoUpgrade UpgradeGlobalVariables will upgrade the 2-field form (add i8* null as the third field). Reviewed By: rnk, dexonsmith Differential Revision: https://reviews.llvm.org/D61547 llvm-svn: 360742
* Replace -use-init-array with -use-ctors.Rafael Espindola2014-09-021-1/+1
| | | | | | | | | | | | | We have been using .init-array for most systems for quiet some time, but tools like llc are still defaulting to .ctors because the old option was never changed. This patch makes llc default to .init-array and changes the option to be -use-ctors. Clang is not affected by this. It has its own fancier logic. llvm-svn: 216905
* Fix broken check lines.Benjamin Kramer2012-08-171-1/+1
| | | | | | | | I really need to find a way to automate this, but I can't come up with a regex that has no false positives while handling tricky cases like custom check prefixes. llvm-svn: 162097
* Properly emit ctors / dtors with priorities into desired sectionsAnton Korobeynikov2012-01-251-12/+18
| | | | | | | | and let linker handle the rest. This finally fixes PR5329 llvm-svn: 148990
* Darwin wants ctors/dtors to be ordered the other way round to linux.Duncan Sands2011-09-021-9/+16
| | | | llvm-svn: 139015
* Fix PR5329: pay attention to constructor/destructor priorityDuncan Sands2011-08-281-0/+21
when outputting them. With this, the entire LLVM testsuite passes when built with dragonegg. llvm-svn: 138724
OpenPOWER on IntegriCloud