I do not see any kind of AnnotateAttr object in VarDecl or anything it inherits, and I also dont see where AnnotateAttr inherits something for it to be inserted into the AST.<br><br>How exactly do you add a AnnotateAttr? What is it added to?<br>
<br>Thank you for the reply<br><br><div class="gmail_quote">On Wed, Sep 7, 2011 at 8:18 PM, John McCall <span dir="ltr"><<a href="mailto:rjmccall@apple.com">rjmccall@apple.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On Sep 7, 2011, at 5:05 PM, Mark Brown wrote:<br>
> Is there anyway to manipulate @llvm.var.annotation at the AST level?<br>
><br>
> In the source file you could do something like<br>
>         __attribute__((annotate("<br>
> GlobalValAnnotation")));<br>
<br>
</div>This becomes an AnnotateAttr on the VarDecl.  There's nothing stopping you from adding this to an AST, as long as you obey the syntactic constraints on the operand.<br>
<font color="#888888"><br>
John.<br>
</font></blockquote></div><br>