[llvm] [NewPM] Port x86-winehstate (PR #180687)
Aiden Grossman via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 10 06:37:37 PST 2026
================
@@ -38,23 +38,18 @@ using namespace llvm;
namespace {
const int OverdefinedState = INT_MIN;
-class WinEHStatePass : public FunctionPass {
-public:
- static char ID; // Pass identification, replacement for typeid.
-
- WinEHStatePass() : FunctionPass(ID) {}
-
- bool runOnFunction(Function &Fn) override;
+constexpr StringRef X86WinEHStatePassName =
+ "Windows 32-bit x86 EH state insertion";
- bool doInitialization(Module &M) override;
+class WinEHStateFnPassImpl {
+public:
+ WinEHStateFnPassImpl() = default;
- bool doFinalization(Module &M) override;
+ bool init(Module &M);
----------------
boomanaiden154 wrote:
Nit: Consistent word style here with `finalize`, maybe `initialize`?
https://github.com/llvm/llvm-project/pull/180687
More information about the llvm-commits
mailing list