diff options
author | Momchil Velikov <momchil.velikov@arm.com> | 2022-02-17 11:18:11 +0000 |
---|---|---|
committer | Momchil Velikov <momchil.velikov@arm.com> | 2022-02-17 12:24:41 +0000 |
commit | 030503e17cae315cbfb6a9adc537d2cc82304f5a (patch) | |
tree | 221cf4176e70172077cceace3755df9eddfeef8a /llvm/lib/IR/Attributes.cpp | |
parent | e7d65fca7ec470469ad3f8e7689b5e563346e4d7 (diff) | |
download | llvm-030503e17cae315cbfb6a9adc537d2cc82304f5a.zip llvm-030503e17cae315cbfb6a9adc537d2cc82304f5a.tar.gz llvm-030503e17cae315cbfb6a9adc537d2cc82304f5a.tar.bz2 |
Remove duplicated code for printing the `uwtable` attribute (NFC)
Committed as obvious.
Reviewed By: chill
Differential Revision: https://reviews.llvm.org/D120030
Diffstat (limited to 'llvm/lib/IR/Attributes.cpp')
-rw-r--r-- | llvm/lib/IR/Attributes.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/llvm/lib/IR/Attributes.cpp b/llvm/lib/IR/Attributes.cpp index 5751b99..f88f75e2 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: |