[PATCH] D120030: Remove duplicated code for printing the `uwtable` attribute (NFC)

Momchil Velikov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 17 02:44:53 PST 2022


chill created this revision.
Herald added subscribers: dexonsmith, jdoerfert, hiraditya.
chill requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Committed as obvious.


https://reviews.llvm.org/D120030

Files:
  llvm/lib/IR/Attributes.cpp


Index: llvm/lib/IR/Attributes.cpp
===================================================================
--- llvm/lib/IR/Attributes.cpp
+++ llvm/lib/IR/Attributes.cpp
@@ -446,14 +446,6 @@
                     Twine(Kind == UWTableKind::Sync ? "sync" : "async") + ")")
                        .str();
     }
-
-    if (Kind != UWTableKind::None) {
-      if (Kind == UWTableKind::Default)
-        return "uwtable";
-      return ("uwtable(" + Twine(Kind == UWTableKind::Sync ? "sync" : "async") +
-              ")")
-          .str();
-    }
   }
 
   // Convert target-dependent attributes to strings of the form:


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D120030.409561.patch
Type: text/x-patch
Size: 613 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220217/ddbcbae7/attachment.bin>


More information about the llvm-commits mailing list