summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/Path.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-06-28 10:55:41 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-06-28 10:55:41 +0000
commit31a244331777e5306ca49182d6551c620e3edec5 (patch)
treeb16dd29ab822ef9915fe72546b2b2963ac88283f /llvm/lib/Support/Path.cpp
parent2b064a2b4e1d356bd9aaa86fedc0eb501b2f8e35 (diff)
downloadbcm5719-llvm-31a244331777e5306ca49182d6551c620e3edec5.tar.gz
bcm5719-llvm-31a244331777e5306ca49182d6551c620e3edec5.zip
Improve comment.
llvm-svn: 185141
Diffstat (limited to 'llvm/lib/Support/Path.cpp')
-rw-r--r--llvm/lib/Support/Path.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/llvm/lib/Support/Path.cpp b/llvm/lib/Support/Path.cpp
index fa03df5a24a..5c28c55f267 100644
--- a/llvm/lib/Support/Path.cpp
+++ b/llvm/lib/Support/Path.cpp
@@ -638,8 +638,7 @@ bool is_relative(const Twine &path) {
namespace fs {
// This is a mkostemps with a different pattern. Unfortunatelly OS X (ond *BSD)
-// don't have it. It might be worth experimenting with mkostemps on systems
-// that have it.
+// don't have it. We should try using mkostemps on systems that have it.
error_code unique_file(const Twine &Model, int &ResultFD,
SmallVectorImpl<char> &ResultPath, bool MakeAbsolute,
unsigned Mode) {
@@ -648,7 +647,7 @@ error_code unique_file(const Twine &Model, int &ResultFD,
}
// This is a mktemp with a differet pattern. We use createUniqueEntity mostly
-// for consistency. It might be worth it experimenting with mktemp.
+// for consistency. We should try using mktemp.
error_code unique_file(const Twine &Model, SmallVectorImpl<char> &ResultPath,
bool MakeAbsolute) {
int Dummy;
@@ -656,7 +655,7 @@ error_code unique_file(const Twine &Model, SmallVectorImpl<char> &ResultPath,
}
// This is a mkdtemp with a different pattern. We use createUniqueEntity mostly
-// for consistency. It might be worth it experimenting with mkdtemp.
+// for consistency. We should try using mkdtemp.
error_code createUniqueDirectory(const Twine &Prefix,
SmallVectorImpl<char> &ResultPath) {
int Dummy;
OpenPOWER on IntegriCloud