================
@@ -1132,6 +1132,13 @@ void CodeGenModule::Release() {
llvm::Module::Warning, "cfguard",
static_cast<unsigned>(llvm::ControlFlowGuardMode::TableOnly));
}
+ if (CodeGenOpts.getWinControlFlowGuardMechanism() !=
+ llvm::ControlFlowGuardMechanism::Automatic) {
+ // Specify the Control Flow Guard mechanism to use on Windows.
+ getModule().addModuleFlag(
+ llvm::Module::Warning, "cfguard-mechanism",
----------------
arsenm wrote:
Add test for the warning link behavior?
https://github.com/llvm/llvm-project/pull/176276
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits