aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorHans Wennborg <hans@hanshq.net>2018-08-10 09:49:21 +0000
committerHans Wennborg <hans@hanshq.net>2018-08-10 09:49:21 +0000
commita912e3e6be26e1c37219be994710e7f5a2b348b3 (patch)
tree8ece4e17c2167d063dbe8edd70a78c14913794a7 /clang/lib/CodeGen/CodeGenModule.cpp
parentd4090be340fbbc3e490f339cded51954716f53f5 (diff)
downloadllvm-a912e3e6be26e1c37219be994710e7f5a2b348b3.zip
llvm-a912e3e6be26e1c37219be994710e7f5a2b348b3.tar.gz
llvm-a912e3e6be26e1c37219be994710e7f5a2b348b3.tar.bz2
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 llvm-svn: 339420
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r--clang/lib/CodeGen/CodeGenModule.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp
index 8baa7a58..72fa799 100644
--- a/clang/lib/CodeGen/CodeGenModule.cpp
+++ b/clang/lib/CodeGen/CodeGenModule.cpp
@@ -460,7 +460,7 @@ void CodeGenModule::Release() {
}
if (CodeGenOpts.ControlFlowGuard) {
// We want function ID tables for Control Flow Guard.
- getModule().addModuleFlag(llvm::Module::Warning, "cfguard", 1);
+ getModule().addModuleFlag(llvm::Module::Warning, "cfguardtable", 1);
}
if (CodeGenOpts.OptimizationLevel > 0 && CodeGenOpts.StrictVTablePointers) {
// We don't support LTO with 2 with different StrictVTablePointers