Currently symbols are not resolved for declare target
after they've been modified by prior passes. This can
lead to missing or incorrect symbols in subsequent
compiler phases when declare target is used with
more complex types e.g. common block.
This patch should allow these symbols to be
resolved appropriately.
Made a minor tweak here to allow marking of common block values as OmpDeclareTarget similar to OmpThreadprivate, the output can be seen in the test I've added. But now you can visually see that the common block is captured by a declare target when dumping symbols, although, it may be interesting to extend this in the future to add the clause it was captured with as well (but it's a little unnecessary for the moment).