diff options
| author | Adrian McCarthy <amccarth@google.com> | 2018-01-08 16:33:42 +0000 |
|---|---|---|
| committer | Adrian McCarthy <amccarth@google.com> | 2018-01-08 16:33:42 +0000 |
| commit | 03788da3eefdf4784667e267142fd13eccae1b2b (patch) | |
| tree | ceed09ff75712e0899e755eb6d679763e02080ad /lib/Frontend/CompilerInvocation.cpp | |
| parent | 76ea7e35cc30ffe119cfe0b7ce2397ca4cb7a88a (diff) | |
| download | clang-03788da3eefdf4784667e267142fd13eccae1b2b.tar.gz | |
Emit Function IDs table for Control Flow Guard
Adds option /guard:cf to clang-cl and -cfguard to cc1 to emit function IDs
of functions that have their address taken into a section named .gfids$y for
compatibility with Microsoft's Control Flow Guard feature.
Differential Revision: https://reviews.llvm.org/D40531
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@322005 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/CompilerInvocation.cpp')
| -rw-r--r-- | lib/Frontend/CompilerInvocation.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Frontend/CompilerInvocation.cpp b/lib/Frontend/CompilerInvocation.cpp index 2252800468..236ee62796 100644 --- a/lib/Frontend/CompilerInvocation.cpp +++ b/lib/Frontend/CompilerInvocation.cpp @@ -721,6 +721,8 @@ static bool ParseCodeGenArgs(CodeGenOptions &Opts, ArgList &Args, InputKind IK, Opts.MainFileName = Args.getLastArgValue(OPT_main_file_name); Opts.VerifyModule = !Args.hasArg(OPT_disable_llvm_verifier); + Opts.ControlFlowGuard = Args.hasArg(OPT_cfguard); + Opts.DisableGCov = Args.hasArg(OPT_test_coverage); Opts.EmitGcovArcs = Args.hasArg(OPT_femit_coverage_data); Opts.EmitGcovNotes = Args.hasArg(OPT_femit_coverage_notes); |
