[llvm-branch-commits] [llvm] [outliners] Turn nooutline into an Enum Attribute (PR #163665)

Craig Topper via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Tue Feb 10 19:56:51 PST 2026


================
@@ -6345,6 +6345,12 @@ void llvm::UpgradeFunctionAttributes(Function &F) {
     RemovingAttrs = true;
   }
 
+  if (Attribute A = F.getFnAttribute("nooutline");
+      A.isValid() && A.isStringAttribute()) {
+    F.removeFnAttr("nooutline");
----------------
topperc wrote:

Should we be using the AttrsToAdd/AttrsToRemove?

https://github.com/llvm/llvm-project/pull/163665


More information about the llvm-branch-commits mailing list