This patch moves the Debug Options to llvm/Frontend so that it can be shared by Flang as well.
Setting this revision as base for adding debug flag to avoid adding additional dependencies on clang.
LGTM. This refactoring helps share code between Clang and Flang. Please wait a couple of days before submitting.
Additional notes in support of approval:
-> The llvm community approved @jdoerfert 's proposal for llvm/lib/Frontend as a common directory for sharing code between multiple frontends. https://discourse.llvm.org/t/rfc-create-llvm-lib-frontend/53681
-> In general the flang community would like to have the Flang driver independent of Clang. I believe the Clang project is fine with this as OKed in a reply to a previous RFC (https://lists.llvm.org/pipermail/cfe-dev/2020-August/066488.html)
LGTM, thanks! As @kiranchandramohan points out, this is in line with the overall direction that we agreed on a while back.
This change will very likely affect various downstream consumers - it would be helpful to advertise this with a PSA on Discourse.