]> granicus.if.org Git - clang/commit
clang-cl: Support /guard:cf,nochecks
authorHans Wennborg <hans@hanshq.net>
Fri, 10 Aug 2018 09:49:21 +0000 (09:49 +0000)
committerHans Wennborg <hans@hanshq.net>
Fri, 10 Aug 2018 09:49:21 +0000 (09:49 +0000)
commit3b8e7405c9212854b19fa1e958ada73220eed5b2
tree040264a7519aa540c89c8a21a03d903d4f5f26cc
parent6601c8f525499269dba75f75bbd1ee2671aaa262
clang-cl: Support /guard:cf,nochecks

This extension emits the guard cf table without inserting the
instrumentation. Currently that's what clang-cl does with /guard:cf
anyway, but this allows a user to request that explicitly.

Differential Revision: https://reviews.llvm.org/D50513

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@339420 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Driver/CLCompatOptions.td
lib/CodeGen/CodeGenModule.cpp
lib/Driver/ToolChains/Clang.cpp
test/CodeGen/cfguardtable.c [new file with mode: 0644]
test/Driver/cl-options.c