diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2015-05-27 18:47:56 +0000 | 
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2015-05-27 18:47:56 +0000 | 
| commit | 5e20cdd81c44a443562a09007668ffdf76c455af (patch) | |
| tree | dbbd4047878da71c1a706e26ce05b4e7791b14cc /lib/Basic/VirtualFileSystem.cpp | |
| parent | d5f23b0b7528b5c3caed1ba14f897cc4aaa9e3c3 (diff) | |
Notes
Diffstat (limited to 'lib/Basic/VirtualFileSystem.cpp')
| -rw-r--r-- | lib/Basic/VirtualFileSystem.cpp | 10 | 
1 files changed, 5 insertions, 5 deletions
| diff --git a/lib/Basic/VirtualFileSystem.cpp b/lib/Basic/VirtualFileSystem.cpp index c89195e9326c..8a882e13f7a5 100644 --- a/lib/Basic/VirtualFileSystem.cpp +++ b/lib/Basic/VirtualFileSystem.cpp @@ -92,7 +92,7 @@ class RealFile : public File {    }  public: -  ~RealFile(); +  ~RealFile() override;    ErrorOr<Status> status() override;    ErrorOr<std::unique_ptr<MemoryBuffer>>    getBuffer(const Twine &Name, int64_t FileSize = -1, @@ -362,7 +362,7 @@ class DirectoryEntry : public Entry {    Status S;  public: -  virtual ~DirectoryEntry(); +  ~DirectoryEntry() override;    DirectoryEntry(StringRef Name, std::vector<Entry *> Contents, Status S)        : Entry(EK_Directory, Name), Contents(std::move(Contents)),          S(std::move(S)) {} @@ -498,7 +498,7 @@ private:    ErrorOr<Status> status(const Twine &Path, Entry *E);  public: -  ~VFSFromYAML(); +  ~VFSFromYAML() override;    /// \brief Parses \p Buffer, which is expected to be in YAML format and    /// returns a virtual file system representing its contents. @@ -1134,7 +1134,7 @@ VFSFromYamlDirIterImpl::VFSFromYamlDirIterImpl(const Twine &_Path,    if (Current != End) {      SmallString<128> PathStr(Dir);      llvm::sys::path::append(PathStr, (*Current)->getName()); -    llvm::ErrorOr<vfs::Status> S = FS.status(PathStr.str()); +    llvm::ErrorOr<vfs::Status> S = FS.status(PathStr);      if (S)        CurrentEntry = *S;      else @@ -1147,7 +1147,7 @@ std::error_code VFSFromYamlDirIterImpl::increment() {    if (++Current != End) {      SmallString<128> PathStr(Dir);      llvm::sys::path::append(PathStr, (*Current)->getName()); -    llvm::ErrorOr<vfs::Status> S = FS.status(PathStr.str()); +    llvm::ErrorOr<vfs::Status> S = FS.status(PathStr);      if (!S)        return S.getError();      CurrentEntry = *S; | 
