[HLSL] add -D option for dxc mode.
authorXiang Li <python3kgae@outlook.com>
Tue, 10 May 2022 21:22:29 +0000 (14:22 -0700)
committerXiang Li <python3kgae@outlook.com>
Wed, 1 Jun 2022 00:50:36 +0000 (17:50 -0700)
commitd3e4727907e533a088fdb42963b6efcd1f26ec88
tree7b99e0bd7d792e03b6a7fa80fdc1a870da4f733f
parente290133c76edb35483cf3280ef59c207af4e29f4
[HLSL] add -D option for dxc mode.

Create dxc_D as alias to option D which Define <macro> to <value> (or 1 if <value> omitted).

Reviewed By: aaron.ballman

Differential Revision: https://reviews.llvm.org/D125338
clang/include/clang/Driver/Options.td
clang/lib/Driver/ToolChains/Clang.cpp
clang/test/Driver/dxc_D.hlsl [new file with mode: 0644]