aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/Support/FileUtilities.h6
-rw-r--r--include/llvm/Support/FileUtilities.h6
-rw-r--r--lib/Support/FileUtilities.cpp6
3 files changed, 9 insertions, 9 deletions
diff --git a/include/Support/FileUtilities.h b/include/Support/FileUtilities.h
index a6a1dc2..978b61b 100644
--- a/include/Support/FileUtilities.h
+++ b/include/Support/FileUtilities.h
@@ -113,15 +113,15 @@ class FDHandle {
public:
FDHandle() : FD(-1) {}
FDHandle(int fd) : FD(fd) {}
- ~FDHandle();
+ ~FDHandle() throw();
operator int() const { return FD; }
- FDHandle &operator=(int fd);
+ FDHandle &operator=(int fd) throw();
/// take - Take ownership of the file descriptor away from the FDHandle
/// object, so that the file is not closed when the FDHandle is destroyed.
- int take();
+ int take() throw();
};
} // End llvm namespace
diff --git a/include/llvm/Support/FileUtilities.h b/include/llvm/Support/FileUtilities.h
index a6a1dc2..978b61b 100644
--- a/include/llvm/Support/FileUtilities.h
+++ b/include/llvm/Support/FileUtilities.h
@@ -113,15 +113,15 @@ class FDHandle {
public:
FDHandle() : FD(-1) {}
FDHandle(int fd) : FD(fd) {}
- ~FDHandle();
+ ~FDHandle() throw();
operator int() const { return FD; }
- FDHandle &operator=(int fd);
+ FDHandle &operator=(int fd) throw();
/// take - Take ownership of the file descriptor away from the FDHandle
/// object, so that the file is not closed when the FDHandle is destroyed.
- int take();
+ int take() throw();
};
} // End llvm namespace
diff --git a/lib/Support/FileUtilities.cpp b/lib/Support/FileUtilities.cpp
index 02b4edd..5b7f7b0 100644
--- a/lib/Support/FileUtilities.cpp
+++ b/lib/Support/FileUtilities.cpp
@@ -199,11 +199,11 @@ bool llvm::MakeFileReadable(const std::string &Filename) {
// FDHandle class implementation
//
-FDHandle::~FDHandle() {
+FDHandle::~FDHandle() throw() {
if (FD != -1) close(FD);
}
-FDHandle &FDHandle::operator=(int fd) {
+FDHandle &FDHandle::operator=(int fd) throw() {
if (FD != -1) close(FD);
FD = fd;
return *this;
@@ -212,7 +212,7 @@ FDHandle &FDHandle::operator=(int fd) {
/// take - Take ownership of the file descriptor away from the FDHandle
/// object, so that the file is not closed when the FDHandle is destroyed.
-int FDHandle::take() {
+int FDHandle::take() throw() {
int Ret = FD;
FD = -1;
return Ret;