Remove last use of PathV1.h from Archive.h

Store the individual fields we need instead of a sys::FileStatus.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184353 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Rafael Espindola
2013-06-19 21:13:59 +00:00
parent f9fd58a44b
commit b4900b132e
6 changed files with 39 additions and 26 deletions

View File

@@ -172,7 +172,11 @@ bool Archive::addFileBefore(StringRef filePath, iterator where,
delete mbr;
return true;
}
mbr->info = *FSInfo;
mbr->User = FSInfo->getUser();
mbr->Group = FSInfo->getGroup();
mbr->Mode = FSInfo->getMode();
mbr->ModTime = FSInfo->getTimestamp();
mbr->Size = FSInfo->getSize();
unsigned flags = 0;
bool hasSlash = filePath.str().find('/') != std::string::npos;