Clang plugin - save metadata

Hi!

I’ve tried to write a plugin for clang using an example.

class PrintInheritanceConsumer : public ASTConsumer {
public:
virtual void HandleTopLevelDecl(DeclGroupRef DG) {

}
};

I need to save Metadata for Type or Module into IR, but I can’t find a way to do this, can you help me?

Thanks!

Yours sincerely,
Kadysev Mikhail