summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/Unix
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-06-12 13:59:17 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-06-12 13:59:17 +0000
commit1d08f5ae7c65f32b3b698eb02774946e9a0b33b0 (patch)
treed1230fd523078799583c49edc0a0e312aeedcb67 /llvm/lib/Support/Unix
parentd5fd942ec34526bd11f903e6761744223fefab9c (diff)
downloadbcm5719-llvm-1d08f5ae7c65f32b3b698eb02774946e9a0b33b0.tar.gz
bcm5719-llvm-1d08f5ae7c65f32b3b698eb02774946e9a0b33b0.zip
Remove Path::createFileOnDisk.
llvm-svn: 183827
Diffstat (limited to 'llvm/lib/Support/Unix')
-rw-r--r--llvm/lib/Support/Unix/Path.inc10
1 files changed, 0 insertions, 10 deletions
diff --git a/llvm/lib/Support/Unix/Path.inc b/llvm/lib/Support/Unix/Path.inc
index 201a7c9a669..39538d0e061 100644
--- a/llvm/lib/Support/Unix/Path.inc
+++ b/llvm/lib/Support/Unix/Path.inc
@@ -585,16 +585,6 @@ Path::createDirectoryOnDisk( bool create_parents, std::string* ErrMsg ) {
}
bool
-Path::createFileOnDisk(std::string* ErrMsg) {
- // Create the file
- int fd = ::creat(path.c_str(), S_IRUSR | S_IWUSR);
- if (fd < 0)
- return MakeErrMsg(ErrMsg, path + ": can't create file");
- ::close(fd);
- return false;
-}
-
-bool
Path::createTemporaryFileOnDisk(bool reuse_current, std::string* ErrMsg) {
// Make this into a unique file name
if (makeUnique( reuse_current, ErrMsg ))
OpenPOWER on IntegriCloud