I guess than it would make sense to move it to sys::fs and use realpath internally for unix. For windows GetFullPathName can be used. http://reviews.llvm.org/D4745