[HLSL] Set main as default entry.
authorXiang Li <python3kgae@outlook.com>
Sat, 6 Aug 2022 08:17:09 +0000 (01:17 -0700)
committerXiang Li <python3kgae@outlook.com>
Thu, 18 Aug 2022 18:57:36 +0000 (11:57 -0700)
commit140b0bf89902845be14a4a710289bee49e0d1fc5
treecc998247e228fcbba0511d75a16d111da92e5061
parent8564e2fea559c58fecab3c7c01acf498bbe7820a
[HLSL] Set main as default entry.

When there's no -E option, use main as entry function.

Reviewed By: beanz

Differential Revision: https://reviews.llvm.org/D124753
clang/include/clang/Driver/Options.td
clang/unittests/Driver/ToolChainTest.cpp