User Details
- User Since
- Jul 18 2019, 3:38 PM (78 w, 6 d)
Sat, Jan 9
Ping. Would love to see this in an upcoming release.
Jul 31 2020
Updated to use existing global1 in llvm/test/MC/ELF/symver.s
Jul 28 2020
Updated to include llvm/test/MC/ELF/symver.s modifications
Mar 10 2020
Relaxing it to Constant and asserting that it has the right type (pointer to void function) seems reasonable. I would prefer that the caller be the one to insert the cast from the void(int, char**, char**) prototype to the void prototype, since only the caller can know that it is safe.
Okay, sure.
Oct 9 2019
In the meantime I've "worked around this" by casting my ConstantExpr * into a Function * and passing it off as one when calling appendToGlobalCtors. This happens to work only because the pointer is only ever used as a Constant * (possible Q: Why should appendToGlobalCtors take a Function * in the first place?)