save modifications to AST?

I wrote a plugin for Clang, based off of the PrintFunctionNames example, that adds annotations to the AST. How can these be saved for later use in a pass?

Do I have to export the AST and then load it somehow? Methods to call?

Thank you