Revert D135076 "[Clang] Make offloading flags accept '-' and '--'"
authorFangrui Song <i@maskray.me>
Mon, 3 Oct 2022 21:34:16 +0000 (14:34 -0700)
committerFangrui Song <i@maskray.me>
Mon, 3 Oct 2022 21:34:16 +0000 (14:34 -0700)
commitf6797056fc4163e6fe5bd57bebd19aa7fd83a778
tree6f183fc348402f0cf4fe65338ccdbf8c53a872b8
parentd420110a1e9d620632d47366d569d234026b9e0e
Revert D135076 "[Clang] Make offloading flags accept '-' and '--'"

This reverts commit 11adae50892e6e94f10ce41bc738a9823a6b3251.
There are multiple aspects this change is not appealing.

* They conflict with JoinedOrSeparate `-o`. The old exception `-objc-*`
  should not be used an excuse.
* We generally want new options to be more rigid and avoid multiple
  spellings.
* If users get used to `-offload-*`, a misspelled `-offload-*` option still
  gets passed as `-o ffloat-*` without being detected.
clang/include/clang/Driver/Options.td