summaryrefslogtreecommitdiff
path: root/lib/Support/FileUtilities.cpp
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2004-12-22 10:24:43 +0000
committerReid Spencer <rspencer@reidspencer.com>2004-12-22 10:24:43 +0000
commit772192cf36edeaed9366382914f820e1d81c605a (patch)
tree2707acfef67003c5e7bf13dbeaf9489bdeab0525 /lib/Support/FileUtilities.cpp
parent24042367952e852f8412bd2d1b8e1e6b90a8d26b (diff)
downloadllvm-772192cf36edeaed9366382914f820e1d81c605a.tar.gz
llvm-772192cf36edeaed9366382914f820e1d81c605a.tar.bz2
llvm-772192cf36edeaed9366382914f820e1d81c605a.tar.xz
For PR351:
Move non-portable FDHandle class to its only user: lib/Debugger git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19106 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/FileUtilities.cpp')
-rw-r--r--lib/Support/FileUtilities.cpp14
1 files changed, 0 insertions, 14 deletions
diff --git a/lib/Support/FileUtilities.cpp b/lib/Support/FileUtilities.cpp
index 8f4917bae9..5255df64e5 100644
--- a/lib/Support/FileUtilities.cpp
+++ b/lib/Support/FileUtilities.cpp
@@ -63,17 +63,3 @@ void llvm::MoveFileOverIfUpdated(const std::string &New,
std::remove(New.c_str());
}
}
-
-//===----------------------------------------------------------------------===//
-// FDHandle class implementation
-//
-
-FDHandle::~FDHandle() throw() {
- if (FD != -1) close(FD);
-}
-
-FDHandle &FDHandle::operator=(int fd) throw() {
- if (FD != -1) close(FD);
- FD = fd;
- return *this;
-}