Decls between translation units

Hi,

I have two declarations (let's say VarDecl) in two different translation units. The question is how to check if the refer to the same entity. In case of single TU we ask for canonical decl and compare pointers. I want to do such comparison between translation units.

Best Regards
Maciej Poleski