Revert "Remove makeArrayRef() calls."

This reverts commit r196475 because it made the build to fail with
GCC 4.7/4.8/4.9. Reported by Mikael Lyngvig.

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@196853 91177308-0d34-0410-b5e6-96231b3b80d8