diff options
author | Mehdi Amini <mehdi.amini@apple.com> | 2015-09-10 00:05:04 +0000 |
---|---|---|
committer | Mehdi Amini <mehdi.amini@apple.com> | 2015-09-10 00:05:04 +0000 |
commit | defa5465514f024bfe77ade44de346004c11421d (patch) | |
tree | ea0547efd38d21760ad0a1afc2ac62a16ab6c1c7 /llvm/lib/CodeGen/RegisterCoalescer.cpp | |
parent | 7540e3a45d232dc216796d22b6b9de5fa584f518 (diff) | |
download | bcm5719-llvm-defa5465514f024bfe77ade44de346004c11421d.tar.gz bcm5719-llvm-defa5465514f024bfe77ade44de346004c11421d.zip |
Add makeArrayRef() overload for ArrayRef input (no-op/identity) NFC
The purpose is to allow templated wrapper to work with either
ArrayRef or any convertible operation:
template<typename Container>
void wrapper(const Container &Arr) {
impl(makeArrayRef(Arr));
}
with Container being a std::vector, a SmallVector, or an ArrayRef.
From: Mehdi Amini <mehdi.amini@apple.com>
llvm-svn: 247214
Diffstat (limited to 'llvm/lib/CodeGen/RegisterCoalescer.cpp')
0 files changed, 0 insertions, 0 deletions