[PATCH] Don't localize globals that may serve as leak checker roots.
duncan.sands at gmail.com
Thu Sep 26 02:46:20 PDT 2013
>> Just to clarify this - who should create llvm.gc_root array - do you suggest to
>> add a new __attribute__
>> the user should specify, or to emit llvm.gc_root in frontend,
> this one: the front-end would stick globals in the array, for example using the
> same logic as in isLeakCheckerRoot (but of course it could use different logic
> if it likes).
PS: Of course one of the advantages of the array approach is that if a user
specified attribute turns out to be useful, then the front-end can implement
that, or whatever other scheme it likes.
More information about the llvm-commits