Now that they are added, how is this saved for later use?<br><br>The PrintFunctionNames example is ran by <br>     clang -cc1 -load ~/llvm/Release+Asserts/lib/libPrintFunctionNames.so -plugin print-fns input_file.c<br><br>
But how does this get stored/saved for the Pass phase? How do the new contents of llvm.var.annotation get stored/saved? "-emit-llvm -S" does not seem to help<br><br>Thanks again<br><br><br><div class="gmail_quote">
On Thu, Sep 8, 2011 at 3:06 AM, 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 8:46 PM, Mark Brown wrote:<br>
> 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>
</div>Attr objects represent attributes.  You can add them to arbitrary Decls with Decl::addAttr().<br>
<font color="#888888"><br>
John.<br>
</font></blockquote></div><br>