path = NewPath;
}
+void FileManager::FixupRelativePath(llvm::SmallVectorImpl<char> &path) const {
+ FixupRelativePath(path, FileSystemOpts);
+}
+
llvm::MemoryBuffer *FileManager::
getBufferForFile(const FileEntry *Entry, std::string *ErrorStr) {
llvm::OwningPtr<llvm::MemoryBuffer> Result;
}
llvm::SmallString<128> FilePath(Entry->getName());
- FixupRelativePath(FilePath, FileSystemOpts);
+ FixupRelativePath(FilePath);
ec = llvm::MemoryBuffer::getFile(FilePath.str(), Result, Entry->getSize());
if (ec && ErrorStr)
*ErrorStr = ec.message();
}
llvm::SmallString<128> FilePath(Filename);
- FixupRelativePath(FilePath, FileSystemOpts);
+ FixupRelativePath(FilePath);
ec = llvm::MemoryBuffer::getFile(FilePath.c_str(), Result);
if (ec && ErrorStr)
*ErrorStr = ec.message();
StatCache.get());
llvm::SmallString<128> FilePath(Path);
- FixupRelativePath(FilePath, FileSystemOpts);
+ FixupRelativePath(FilePath);
return FileSystemStatCache::get(FilePath.c_str(), StatBuf, FileDescriptor,
StatCache.get());