Use more ArrayRefs

No functional change is intended, just a small refactoring.

llvm-svn: 273647
39 files changed