[PATCH] D145493: [llvm][Demangle] Sync with libcxxabi
Michael Buch via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 7 05:29:34 PST 2023
Michael137 created this revision.
Michael137 added reviewers: urnathan, aprantl.
Herald added a project: All.
Michael137 requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D145493
Files:
llvm/include/llvm/Demangle/ItaniumDemangle.h
Index: llvm/include/llvm/Demangle/ItaniumDemangle.h
===================================================================
--- llvm/include/llvm/Demangle/ItaniumDemangle.h
+++ llvm/include/llvm/Demangle/ItaniumDemangle.h
@@ -27,18 +27,18 @@
#include <cstring>
#include <limits>
#include <new>
-#include <type_traits>
#include <utility>
DEMANGLE_NAMESPACE_BEGIN
template <class T, size_t N> class PODSmallVector {
- static_assert(std::is_trivial_v<T>, "T is required to be a trivial type");
+ static_assert(std::is_pod<T>::value,
+ "T is required to be a plain old data type");
T *First = nullptr;
T *Last = nullptr;
T *Cap = nullptr;
- T Inline[N] = {};
+ T Inline[N] = {0};
bool isInline() const { return First == Inline; }
@@ -537,6 +537,8 @@
template<typename Fn> void match(Fn F) const { F(Base, Tag); }
+ StringView getBaseName() const override { return Base->getBaseName(); }
+
void printLeft(OutputBuffer &OB) const override {
Base->printLeft(OB);
OB += "[abi:";
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D145493.503002.patch
Type: text/x-patch
Size: 1035 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230307/a438769a/attachment.bin>
More information about the llvm-commits
mailing list