diff options
author | Pete Cooper <peter_cooper@apple.com> | 2015-05-13 01:12:16 +0000 |
---|---|---|
committer | Pete Cooper <peter_cooper@apple.com> | 2015-05-13 01:12:16 +0000 |
commit | 41e0ee30748f021dba3e0ea039dee50ad0e97f9a (patch) | |
tree | 5887625435f9b351d28519437337cab6e880ca85 /llvm/lib/Target/PowerPC/Disassembler/PPCDisassembler.cpp | |
parent | 4bf388d9ad9df5ef1877d306313e83db35b183b4 (diff) | |
download | llvm-41e0ee30748f021dba3e0ea039dee50ad0e97f9a.zip llvm-41e0ee30748f021dba3e0ea039dee50ad0e97f9a.tar.gz llvm-41e0ee30748f021dba3e0ea039dee50ad0e97f9a.tar.bz2 |
Change LoadAndStorePromoter to take ArrayRef instead of SmallVectorImpl&.
The array passed to LoadAndStorePromoter's constructor was a constant reference to a SmallVectorImpl, which is just the same as passing an ArrayRef.
Also, the data in the array can be 'const Instruction*' instead of 'Instruction*'. Its not possible to convert a SmallVectorImpl<T*> to SmallVectorImpl<const T*>, but ArrayRef does provide such a method.
Currently this added calls to makeArrayRef which should be a nop, but i'm going to kick off a discussion about improving ArrayRef to not need these.
llvm-svn: 237226
Diffstat (limited to 'llvm/lib/Target/PowerPC/Disassembler/PPCDisassembler.cpp')
0 files changed, 0 insertions, 0 deletions