diff options
author | Alvin Wong <alvin@alvinhc.com> | 2022-09-09 09:18:02 +0300 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2022-09-09 09:55:40 +0300 |
commit | a3a8bd00c8f1e094967a80e56485c421e312dd2e (patch) | |
tree | 29689b4ea82d4eff7b3f2c3023d9be862e308c94 /llvm/lib/Support/CommandLine.cpp | |
parent | bf7c5f1fae582ff4cc875713695b2dadb1cf5e59 (diff) | |
download | llvm-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