[PATCH] D124753: [HLSL] Set main as default entry.

Fangrui Song via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu May 26 18:18:55 PDT 2022


MaskRay added inline comments.


================
Comment at: clang/lib/Driver/ToolChains/HLSL.cpp:194
+    const StringRef DefaultEntry = "main";
+    DAL->AddSeparateArg(nullptr, Opts.getOption(options::OPT_hlsl_entrypoint),
+                        DefaultEntry);
----------------
Instead of letting Driver pass a default OPT_hlsl_entrypoint to CC1, you can let CC1 have a default OPT_hlsl_entrypoint.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D124753



More information about the cfe-commits mailing list