[llvm] r340687 - Fix -Wunused-function warning. NFCI.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Sat Aug 25 10:11:11 PDT 2018
Author: rksimon
Date: Sat Aug 25 10:11:11 2018
New Revision: 340687
URL: http://llvm.org/viewvc/llvm-project?rev=340687&view=rev
Log:
Fix -Wunused-function warning. NFCI.
Modified:
llvm/trunk/lib/Demangle/MicrosoftDemangle.cpp
Modified: llvm/trunk/lib/Demangle/MicrosoftDemangle.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Demangle/MicrosoftDemangle.cpp?rev=340687&r1=340686&r2=340687&view=diff
==============================================================================
--- llvm/trunk/lib/Demangle/MicrosoftDemangle.cpp (original)
+++ llvm/trunk/lib/Demangle/MicrosoftDemangle.cpp Sat Aug 25 10:11:11 2018
@@ -500,8 +500,6 @@ struct Name {
bool IsOperator = false;
bool IsBackReference = false;
- bool isStringLiteralOperatorInfo() const;
-
// Name read from an MangledName string.
StringView Str;
@@ -1073,13 +1071,6 @@ static void outputSpecialOperator(Output
namespace {
-bool Name::isStringLiteralOperatorInfo() const {
- if (!IsOperator)
- return false;
- const OperatorInfo &O = static_cast<const OperatorInfo &>(*this);
- return O.Info->Operator == OperatorTy::StringLiteral;
-}
-
Type *Type::clone(ArenaAllocator &Arena) const {
return Arena.alloc<Type>(*this);
}
More information about the llvm-commits
mailing list