Move from llvm::makeArrayRef to ArrayRef deduction guides
authorserge-sans-paille <sguelton@mozilla.com>
Wed, 4 Jan 2023 07:14:42 +0000 (08:14 +0100)
committerserge-sans-paille <sguelton@mozilla.com>
Wed, 4 Jan 2023 07:18:29 +0000 (08:18 +0100)
commit3677ee65d192ae9a6a0b6037b7ec476f08c4918d
tree0ac4f7641194ff817be7bdc8aaabf70c8453f751
parent1e9e1b9cf857415528bbc7ec9eefaf98bb080c8c
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
llvm/include/llvm/ADT/ArrayRef.h