@@ -138,7 +138,7 @@ std::error_code FileSystem::makeAbsolute(SmallVectorImpl<char> &Path) const {
138138}
139139
140140std::error_code FileSystem::getRealPath (const Twine &Path,
141- SmallVectorImpl<char > &Output) const {
141+ SmallVectorImpl<char > &Output) {
142142 return errc::operation_not_permitted;
143143}
144144
@@ -275,7 +275,7 @@ class RealFileSystem : public FileSystem {
275275 std::error_code setCurrentWorkingDirectory (const Twine &Path) override ;
276276 std::error_code isLocal (const Twine &Path, bool &Result) override ;
277277 std::error_code getRealPath (const Twine &Path,
278- SmallVectorImpl<char > &Output) const override ;
278+ SmallVectorImpl<char > &Output) override ;
279279
280280protected:
281281 void printImpl (raw_ostream &OS, PrintType Type,
@@ -357,9 +357,8 @@ std::error_code RealFileSystem::isLocal(const Twine &Path, bool &Result) {
357357 return llvm::sys::fs::is_local (adjustPath (Path, Storage), Result);
358358}
359359
360- std::error_code
361- RealFileSystem::getRealPath (const Twine &Path,
362- SmallVectorImpl<char > &Output) const {
360+ std::error_code RealFileSystem::getRealPath (const Twine &Path,
361+ SmallVectorImpl<char > &Output) {
363362 SmallString<256 > Storage;
364363 return llvm::sys::fs::real_path (adjustPath (Path, Storage), Output);
365364}
@@ -471,9 +470,8 @@ std::error_code OverlayFileSystem::isLocal(const Twine &Path, bool &Result) {
471470 return errc::no_such_file_or_directory;
472471}
473472
474- std::error_code
475- OverlayFileSystem::getRealPath (const Twine &Path,
476- SmallVectorImpl<char > &Output) const {
473+ std::error_code OverlayFileSystem::getRealPath (const Twine &Path,
474+ SmallVectorImpl<char > &Output) {
477475 for (const auto &FS : FSList)
478476 if (FS->exists (Path))
479477 return FS->getRealPath (Path, Output);
@@ -1157,9 +1155,8 @@ std::error_code InMemoryFileSystem::setCurrentWorkingDirectory(const Twine &P) {
11571155 return {};
11581156}
11591157
1160- std::error_code
1161- InMemoryFileSystem::getRealPath (const Twine &Path,
1162- SmallVectorImpl<char > &Output) const {
1158+ std::error_code InMemoryFileSystem::getRealPath (const Twine &Path,
1159+ SmallVectorImpl<char > &Output) {
11631160 auto CWD = getCurrentWorkingDirectory ();
11641161 if (!CWD || CWD->empty ())
11651162 return errc::operation_not_permitted;
@@ -2535,7 +2532,7 @@ RedirectingFileSystem::openFileForRead(const Twine &OriginalPath) {
25352532
25362533std::error_code
25372534RedirectingFileSystem::getRealPath (const Twine &OriginalPath,
2538- SmallVectorImpl<char > &Output) const {
2535+ SmallVectorImpl<char > &Output) {
25392536 SmallString<256 > Path;
25402537 OriginalPath.toVector (Path);
25412538
0 commit comments