From 1fdf02ad5a4ca155017eea22688365a20aab077c Mon Sep 17 00:00:00 2001 From: Rahul Joshi Date: Thu, 22 May 2025 08:07:52 -0700 Subject: [LLVM][CodeGen] Add convenience accessors for MachineFunctionProperties (#140002) Add per-property has/set/reset functions to MachineFunctionProperties. --- llvm/lib/CodeGen/PatchableFunction.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'llvm/lib/CodeGen/PatchableFunction.cpp') diff --git a/llvm/lib/CodeGen/PatchableFunction.cpp b/llvm/lib/CodeGen/PatchableFunction.cpp index 07e6c1d..405b9fd 100644 --- a/llvm/lib/CodeGen/PatchableFunction.cpp +++ b/llvm/lib/CodeGen/PatchableFunction.cpp @@ -38,8 +38,7 @@ struct PatchableFunctionLegacy : public MachineFunctionPass { } MachineFunctionProperties getRequiredProperties() const override { - return MachineFunctionProperties().set( - MachineFunctionProperties::Property::NoVRegs); + return MachineFunctionProperties().setNoVRegs(); } }; -- cgit v1.1