[LLVMdev] Rolling my own appending linkage
Devang Patel
dpatel at apple.com
Tue Jan 25 09:14:30 PST 2011
On Jan 24, 2011, at 11:57 PM, Duncan Sands wrote:
> Hi Talin,
>
>> Really, all I need to make this work is some way to 'mark' a global so that my
>> custom pass can query for all marked globals. Any ideas on this?
>
> metadata maybe?
A better approach would be to create an global array of strings to hold names of marked globals. You know the name of this special array and use it to query all marked globals. This is the trick llvm-gcc uses to support PCH.
-
Devang
More information about the llvm-dev
mailing list