[llvm] 030503e - Remove duplicated code for printing the `uwtable` attribute (NFC)
Momchil Velikov via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 17 04:25:19 PST 2022
Author: Momchil Velikov
Date: 2022-02-17T12:24:41Z
New Revision: 030503e17cae315cbfb6a9adc537d2cc82304f5a
URL: https://github.com/llvm/llvm-project/commit/030503e17cae315cbfb6a9adc537d2cc82304f5a
DIFF: https://github.com/llvm/llvm-project/commit/030503e17cae315cbfb6a9adc537d2cc82304f5a.diff
LOG: Remove duplicated code for printing the `uwtable` attribute (NFC)
Committed as obvious.
Reviewed By: chill
Differential Revision: https://reviews.llvm.org/D120030
Added:
Modified:
llvm/lib/IR/Attributes.cpp
Removed:
################################################################################
diff --git a/llvm/lib/IR/Attributes.cpp b/llvm/lib/IR/Attributes.cpp
index 5751b99a2807e..f88f75e23d9de 100644
--- a/llvm/lib/IR/Attributes.cpp
+++ b/llvm/lib/IR/Attributes.cpp
@@ -446,14 +446,6 @@ std::string Attribute::getAsString(bool InAttrGrp) const {
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:
More information about the llvm-commits
mailing list