diff options
author | Sylvestre Ledru <sylvestre@debian.org> | 2022-09-13 10:53:59 +0200 |
---|---|---|
committer | Sylvestre Ledru <sylvestre@debian.org> | 2022-09-13 10:53:59 +0200 |
commit | cd20a1828605887699579789b5433111d5bc0319 (patch) | |
tree | 93da022f42c96dc5abad238c8505f7d162ecb774 /llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp | |
parent | 2694234c2982c57b9442ad1a1b4ffb2100f4ff34 (diff) | |
download | llvm-cd20a1828605887699579789b5433111d5bc0319.zip llvm-cd20a1828605887699579789b5433111d5bc0319.tar.gz llvm-cd20a1828605887699579789b5433111d5bc0319.tar.bz2 |
Revert "[clang, llvm] Add __declspec(safebuffers), support it in CodeView"
Causing:
https://github.com/llvm/llvm-project/issues/57709
This reverts commit ab56719acd98778fb2e48fa425ac7c8d27bdea86.
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp index a97eb9f..16213af 100644 --- a/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp @@ -1498,16 +1498,8 @@ void CodeViewDebug::beginFunctionImpl(const MachineFunction *MF) { FPO |= FrameProcedureOptions::MarkedInline; if (GV.hasFnAttribute(Attribute::Naked)) FPO |= FrameProcedureOptions::Naked; - if (MFI.hasStackProtectorIndex()) { + if (MFI.hasStackProtectorIndex()) FPO |= FrameProcedureOptions::SecurityChecks; - if (GV.hasFnAttribute(Attribute::StackProtectStrong) || - GV.hasFnAttribute(Attribute::StackProtectReq)) { - FPO |= FrameProcedureOptions::StrictSecurityChecks; - } - } else if (!GV.hasStackProtectorFnAttr()) { - // __declspec(safebuffers) disables stack guards. - FPO |= FrameProcedureOptions::SafeBuffers; - } FPO |= FrameProcedureOptions(uint32_t(CurFn->EncodedLocalFramePtrReg) << 14U); FPO |= FrameProcedureOptions(uint32_t(CurFn->EncodedParamFramePtrReg) << 16U); if (Asm->TM.getOptLevel() != CodeGenOpt::None && |