Change directory_entry::path() to return a const std::string & instead of

a StringRef, for the benefit of clients that want the result as a
nul-terminated string. Clients that expect a StringRef will get one via
the implicit conversion.

llvm-svn: 126784
This commit is contained in:
Dan Gohman 2011-03-01 22:07:09 +00:00
parent 28c3fcccb2
commit 031d64683a
1 changed files with 1 additions and 1 deletions

View File

@ -595,7 +595,7 @@ public:
void replace_filename(const Twine &filename, file_status st = file_status(),
file_status symlink_st = file_status());
StringRef path() const { return Path; }
const std::string &path() const { return Path; }
error_code status(file_status &result) const;
error_code symlink_status(file_status &result) const;