diff options
author | Dan Gohman <gohman@apple.com> | 2011-03-01 22:07:09 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2011-03-01 22:07:09 +0000 |
commit | 9f0512d85ffb44b9513ebc867f4d48d33726257a (patch) | |
tree | 252715c85b9ab58a61ac035d43aa8e904ce05eb6 /include/llvm/Support/FileSystem.h | |
parent | 4c078f0d6df6136cbbcf581c254869051d455fdc (diff) | |
download | llvm-9f0512d85ffb44b9513ebc867f4d48d33726257a.tar.gz llvm-9f0512d85ffb44b9513ebc867f4d48d33726257a.tar.bz2 llvm-9f0512d85ffb44b9513ebc867f4d48d33726257a.tar.xz |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126784 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/FileSystem.h')
-rw-r--r-- | include/llvm/Support/FileSystem.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/Support/FileSystem.h b/include/llvm/Support/FileSystem.h index 4001bf0b84..4f013f89e8 100644 --- a/include/llvm/Support/FileSystem.h +++ b/include/llvm/Support/FileSystem.h @@ -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; |