Add some helper functions to the demangle utility classes.
authorZachary Turner <zturner@google.com>
Tue, 17 Jul 2018 19:42:29 +0000 (19:42 +0000)
committerZachary Turner <zturner@google.com>
Tue, 17 Jul 2018 19:42:29 +0000 (19:42 +0000)
commit8a0efd09190e75c283dc929a8c739c76b5d0917e
tree9b24026fede8e8207d0651fb280367a3feda4a5f
parentf989a92dea46f96548bdc83a394ff0a12c5ffa6b
Add some helper functions to the demangle utility classes.

These are all methods that, while not currently used in the
Itanium demangler, are generally useful enough that it's
likely the itanium demangler could find a use for them.  More
importantly, they are all necessary for the Microsoft demangler
which is up and coming in a subsequent patch.  Rather than
combine these into a single monolithic patch, I think it makes
sense to commit this utility code first since it is very simple,
this way it won't detract from the substance of the MS demangler
patch.

llvm-svn: 337316
llvm/include/llvm/Demangle/Demangle.h
llvm/lib/Demangle/ItaniumDemangle.cpp
llvm/lib/Demangle/StringView.h
llvm/lib/Demangle/Utility.h