yaxunl added a comment.

I am not sure whether it is proper to rename it.

Originally, this flag means driver option which is not supposed to be forwarded 
to tools. It is more like a reminder to driver developers since clang driver 
does not automatically forward options to tools and does not enforce not 
forwarding options with this flag to tools.

Then some toolchains use this flag as a heuristic not to use options with this 
flag with -Xarch. For that purpose it is too broad as many options with this 
flag can be used with -Xarch.

So the question is: Is there any value to keep the original intention of this 
flag, i.e. mark some options as driver options without enforcing it? Or do we 
want to add assertions or warnings in clang -cc1 to check if driver options are 
passed to FE?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D89799/new/

https://reviews.llvm.org/D89799

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to