diff options
Diffstat (limited to 'include/clang/Basic/FileManager.h')
-rw-r--r-- | include/clang/Basic/FileManager.h | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/include/clang/Basic/FileManager.h b/include/clang/Basic/FileManager.h index 5a143e9441..12e9e3f227 100644 --- a/include/clang/Basic/FileManager.h +++ b/include/clang/Basic/FileManager.h @@ -171,7 +171,7 @@ class FileManager { // Caching. llvm::OwningPtr<StatSysCallCache> StatCache; - int stat_cached(const char* path, struct stat* buf); + int stat_cached(const char *path, struct stat *buf); public: FileManager(const FileSystemOptions &FileSystemOpts); @@ -212,12 +212,9 @@ public: /// \brief Open the specified file as a MemoryBuffer, returning a new /// MemoryBuffer if successful, otherwise returning null. llvm::MemoryBuffer *getBufferForFile(const FileEntry *Entry, - std::string *ErrorStr = 0) { - return getBufferForFile(Entry->getName(), ErrorStr, Entry->getSize()); - } + std::string *ErrorStr = 0); llvm::MemoryBuffer *getBufferForFile(llvm::StringRef Filename, - std::string *ErrorStr = 0, - int64_t FileSize = -1); + std::string *ErrorStr = 0); /// \brief If path is not absolute and FileSystemOptions set the working /// directory, the path is modified to be relative to the given |