[clang] [llvm] [HLSL] Add -HV option translation to clang-dxc.exe (PR #83938)

Xiang Li via cfe-commits cfe-commits at lists.llvm.org
Sat Mar 9 04:52:18 PST 2024


================
@@ -69,6 +69,21 @@ LangStandard::Kind LangStandard::getLangKind(StringRef Name) {
       .Default(lang_unspecified);
 }
 
+LangStandard::Kind LangStandard::getHLSLLangKind(StringRef Name) {
+  if (Name == "2016")
----------------
python3kgae wrote:

Maybe a StringSwitch here.



https://github.com/llvm/llvm-project/pull/83938


More information about the cfe-commits mailing list