This is a patch I applied internally to debug out-of-date issues. In general is this the right way to add debugging messages in clang frontend?
I wonder how we debug module-related issues. This patch adds DEBUG_TYPE to various source files that are module related, to enable the debugging, we need an assert build of the compiler. Is it better to add a cc1 option to dump debugging messages even for a no-assert (release) build of the compiler?