[llvm] [MsDemangle] Read entire chain of target names in special tables (PR #155630)

Hans Wennborg via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 5 06:51:29 PST 2025


================
@@ -289,6 +290,16 @@ static NodeArrayNode *nodeListToNodeArray(ArenaAllocator &Arena, NodeList *Head,
   return N;
 }
 
+template <unsigned N>
+static NodeArrayNode *smallVecToNodeArray(ArenaAllocator &Arena,
+                                          const SmallVector<Node *, N> &Vec) {
----------------
zmodem wrote:

An `ArrayRef` or `SmallVectorImpl` would be better here, to avoid having to deal with `N`. See https://llvm.org/docs/ProgrammersManual.html#llvm-adt-smallvector-h:~:text=Prefer%20to%20use,nothing.%20E.g.

https://github.com/llvm/llvm-project/pull/155630


More information about the llvm-commits mailing list