[all-commits] [llvm/llvm-project] 3677ee: Move from llvm::makeArrayRef to ArrayRef deduction...
serge-sans-paille via All-commits
all-commits at lists.llvm.org
Tue Jan 3 23:20:44 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 3677ee65d192ae9a6a0b6037b7ec476f08c4918d
https://github.com/llvm/llvm-project/commit/3677ee65d192ae9a6a0b6037b7ec476f08c4918d
Author: serge-sans-paille <sguelton at mozilla.com>
Date: 2023-01-04 (Wed, 04 Jan 2023)
Changed paths:
M llvm/include/llvm/ADT/ArrayRef.h
Log Message:
-----------
Move from llvm::makeArrayRef to ArrayRef deduction guides
Since we're now requiring C++17, Let's get rid of makeXXX functions like
makeArrayRef, and use deduction guides instead.
This is a first step: Introduce the deduction guide. Following steps
will be a) use them and b) deprecate makeArrayRef.
Apart from codebase modernization, there isn't much benefit from that
move, but I can still mention that it would slightly (probably
negligibly) decrease the number of symbols / debug info, as deduction
guides don't generate new code.
Differential Revision: https://reviews.llvm.org/D140896
More information about the All-commits
mailing list