How can I get a copy of CompilerInstance, Sema and ASTContext ?

Hi all,
I want to copy the value of ASTContext to a global variable, in function clang::ParseAST(Sema &S, bool PrintStats, bool SkipFunctionBodies). But the operator = is defined as LLVM_DELETED_FUNCTION, so how can I realize the assignment ?
Thanks.
Bo