[PATCH] D126137: [X86] Add support for `-mharden-sls=all`
Fangrui Song via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu May 26 14:21:45 PDT 2022
MaskRay added inline comments.
================
Comment at: llvm/lib/Target/X86/X86AsmPrinter.cpp:355
+void X86AsmPrinter::emitBasicBlockEnd(const MachineBasicBlock &MBB) {
+ AsmPrinter::emitBasicBlockEnd(MBB);
+ if (Subtarget->hardenSlsRet() || Subtarget->hardenSlsInd()) {
----------------
This is used with basic block sections. It should be moved after int3.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D126137/new/
https://reviews.llvm.org/D126137
More information about the cfe-commits
mailing list