[all-commits] [llvm/llvm-project] f4853d: [LLVM][Support] Add getTrailingObjects() for singl...
Rahul Joshi via All-commits
all-commits at lists.llvm.org
Fri May 9 12:05:24 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: f4853d7a25e093ac1b69959264a90f6a2326aefe
https://github.com/llvm/llvm-project/commit/f4853d7a25e093ac1b69959264a90f6a2326aefe
Author: Rahul Joshi <rjoshi at nvidia.com>
Date: 2025-05-09 (Fri, 09 May 2025)
Changed paths:
M llvm/include/llvm/Support/TrailingObjects.h
M llvm/unittests/Support/TrailingObjectsTest.cpp
Log Message:
-----------
[LLVM][Support] Add getTrailingObjects() for single trailing type (#138970)
Add a specialization of getTrailingObjects() for a single trailing type.
This is a common case and with the specialization you don't need to
specify the single trailing type redundantly. Also add an overload for
getTrailingObjects which takes size and returns an
ArryaRef/MutableArrayRef as that's a common use case as well.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list