From e6e687f2d993317995c101f95b9a622a35975228 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sun, 15 Aug 2021 09:31:39 -0700 Subject: [PATCH] [AsmParser] Remove MDSignedOrUnsignedField (NFC) The last use was removed on Apr 18, 2020 in commit aad3d578da0ddf6d0d3d95e5e09a32e47f6dfeb8. --- llvm/lib/AsmParser/LLParser.cpp | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/llvm/lib/AsmParser/LLParser.cpp b/llvm/lib/AsmParser/LLParser.cpp index 9ae10d76692a..64af1dc3751e 100644 --- a/llvm/lib/AsmParser/LLParser.cpp +++ b/llvm/lib/AsmParser/LLParser.cpp @@ -3914,22 +3914,6 @@ struct MDSignedOrMDField : MDEitherFieldImpl { } }; -struct MDSignedOrUnsignedField - : MDEitherFieldImpl { - MDSignedOrUnsignedField() : ImplTy(MDSignedField(0), MDUnsignedField(0)) {} - - bool isMDSignedField() const { return WhatIs == IsTypeA; } - bool isMDUnsignedField() const { return WhatIs == IsTypeB; } - int64_t getMDSignedValue() const { - assert(isMDSignedField() && "Wrong field type"); - return A.Val; - } - uint64_t getMDUnsignedValue() const { - assert(isMDUnsignedField() && "Wrong field type"); - return B.Val; - } -}; - } // end anonymous namespace namespace llvm {