aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/CommandLine.cpp
diff options
context:
space:
mode:
authorAlvin Wong <alvin@alvinhc.com>2022-09-09 09:18:02 +0300
committerMartin Storsjö <martin@martin.st>2022-09-09 09:55:40 +0300
commita3a8bd00c8f1e094967a80e56485c421e312dd2e (patch)
tree29689b4ea82d4eff7b3f2c3023d9be862e308c94 /llvm/lib/Support/CommandLine.cpp
parentbf7c5f1fae582ff4cc875713695b2dadb1cf5e59 (diff)
downloadllvm-a3a8bd00c8f1e094967a80e56485c421e312dd2e.zip
llvm-a3a8bd00c8f1e094967a80e56485c421e312dd2e.tar.gz
llvm-a3a8bd00c8f1e094967a80e56485c421e312dd2e.tar.bz2
[clang][MinGW] Add `-mguard=cf` and `-mguard=cf-nochecks`
This option can be used to enable Control Flow Guard checks and generation of address-taken function table. They are equivalent to `/guard:cf` and `/guard:cf,nochecks` in clang-cl. Passing this flag to the Clang driver will also pass `--guard-cf` to the MinGW linker. This feature is disabled by default. The option `-mguard=none` is also available to explicitly disable this feature. Reviewed By: rnk Differential Revision: https://reviews.llvm.org/D132810
Diffstat (limited to 'llvm/lib/Support/CommandLine.cpp')
0 files changed, 0 insertions, 0 deletions