Refactor many file functions to use FileSpec over strings.

This is the FreeBSD change for r238604.

llvm-svn: 238752
2 files changed