Recommit virtual file system
Previously reverted in r201755 due to causing an assertion failure. I've removed the offending assertion, and taught the CompilerInstance to create a default virtual file system inside createFileManager. In the future, we should be able to reach into the CompilerInvocation to customize this behaviour without breaking clients that don't care. llvm-svn: 201818
This commit is contained in:
@@ -89,7 +89,7 @@ ModuleManager::addModule(StringRef FileName, ModuleKind Type,
|
||||
New->InputFilesValidationTimestamp = 0;
|
||||
if (New->Kind == MK_Module) {
|
||||
std::string TimestampFilename = New->getTimestampFilename();
|
||||
llvm::sys::fs::file_status Status;
|
||||
vfs::Status Status;
|
||||
// A cached stat value would be fine as well.
|
||||
if (!FileMgr.getNoncachedStatValue(TimestampFilename, Status))
|
||||
New->InputFilesValidationTimestamp =
|
||||
|
||||
Reference in New Issue
Block a user