diff options
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenModule.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index 85f8148..3469676 100644 --- a/clang/lib/CodeGen/CodeGenModule.cpp +++ b/clang/lib/CodeGen/CodeGenModule.cpp @@ -1307,6 +1307,10 @@ void CodeGenModule::Release() { getModule().addModuleFlag(llvm::Module::Warning, "import-call-optimization", 1); + // Enable unwind v2 (epilog). + if (CodeGenOpts.WinX64EHUnwindV2) + getModule().addModuleFlag(llvm::Module::Warning, "winx64-eh-unwindv2", 1); + // Indicate whether this Module was compiled with -fopenmp if (getLangOpts().OpenMP && !getLangOpts().OpenMPSimd) getModule().addModuleFlag(llvm::Module::Max, "openmp", LangOpts.OpenMP); |