diff options
author | Anders Carlsson <andersca@mac.com> | 2011-03-14 01:13:54 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2011-03-14 01:13:54 +0000 |
commit | 9ba8fb1e48baba536621d544da1299df83847548 (patch) | |
tree | dc00f76f10b585d1346f0e01068615ab7195ed1f /clang/lib/Basic/FileManager.cpp | |
parent | d91d5f162f099eea10054ef3b083a18ca1558e0c (diff) | |
download | bcm5719-llvm-9ba8fb1e48baba536621d544da1299df83847548.tar.gz bcm5719-llvm-9ba8fb1e48baba536621d544da1299df83847548.zip |
Get rid of the static FileManager::FixupRelativePath.
llvm-svn: 127573
Diffstat (limited to 'clang/lib/Basic/FileManager.cpp')
-rw-r--r-- | clang/lib/Basic/FileManager.cpp | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/clang/lib/Basic/FileManager.cpp b/clang/lib/Basic/FileManager.cpp index add4ec00b1f..6512d76aae5 100644 --- a/clang/lib/Basic/FileManager.cpp +++ b/clang/lib/Basic/FileManager.cpp @@ -450,22 +450,18 @@ FileManager::getVirtualFile(llvm::StringRef Filename, off_t Size, return UFE; } -void FileManager::FixupRelativePath(llvm::SmallVectorImpl<char> &path, - const FileSystemOptions &FSOpts) { +void FileManager::FixupRelativePath(llvm::SmallVectorImpl<char> &path) const { llvm::StringRef pathRef(path.data(), path.size()); - if (FSOpts.WorkingDir.empty() || llvm::sys::path::is_absolute(pathRef)) + if (FileSystemOpts.WorkingDir.empty() + || llvm::sys::path::is_absolute(pathRef)) return; - llvm::SmallString<128> NewPath(FSOpts.WorkingDir); + llvm::SmallString<128> NewPath(FileSystemOpts.WorkingDir); llvm::sys::path::append(NewPath, pathRef); 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; |