[cfe-commits] r127144 - /cfe/trunk/lib/Basic/FileManager.cpp

Anders Carlsson andersca at mac.com
Sun Mar 6 17:28:33 PST 2011


Author: andersca
Date: Sun Mar  6 19:28:33 2011
New Revision: 127144

URL: http://llvm.org/viewvc/llvm-project?rev=127144&view=rev
Log:
Check in the implementation as well...

Modified:
    cfe/trunk/lib/Basic/FileManager.cpp

Modified: cfe/trunk/lib/Basic/FileManager.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Basic/FileManager.cpp?rev=127144&r1=127143&r2=127144&view=diff
==============================================================================
--- cfe/trunk/lib/Basic/FileManager.cpp (original)
+++ cfe/trunk/lib/Basic/FileManager.cpp Sun Mar  6 19:28:33 2011
@@ -462,6 +462,10 @@
   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;
@@ -488,7 +492,7 @@
   }
 
   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();
@@ -507,7 +511,7 @@
   }
 
   llvm::SmallString<128> FilePath(Filename);
-  FixupRelativePath(FilePath, FileSystemOpts);
+  FixupRelativePath(FilePath);
   ec = llvm::MemoryBuffer::getFile(FilePath.c_str(), Result);
   if (ec && ErrorStr)
     *ErrorStr = ec.message();
@@ -528,7 +532,7 @@
                                     StatCache.get());
 
   llvm::SmallString<128> FilePath(Path);
-  FixupRelativePath(FilePath, FileSystemOpts);
+  FixupRelativePath(FilePath);
 
   return FileSystemStatCache::get(FilePath.c_str(), StatBuf, FileDescriptor,
                                   StatCache.get());





More information about the cfe-commits mailing list