[llvm-commits] CVS: llvm/lib/Support/FileUtilities.cpp
Chris Lattner
lattner at cs.uiuc.edu
Mon Dec 29 15:45:07 PST 2003
Changes in directory llvm/lib/Support:
FileUtilities.cpp updated: 1.15 -> 1.16
---
Log message:
Add trivial exception specs to produce better code since the methods cannot
be inlined.
---
Diffs of the changes: (+3 -3)
Index: llvm/lib/Support/FileUtilities.cpp
diff -u llvm/lib/Support/FileUtilities.cpp:1.15 llvm/lib/Support/FileUtilities.cpp:1.16
--- llvm/lib/Support/FileUtilities.cpp:1.15 Mon Dec 29 15:35:05 2003
+++ llvm/lib/Support/FileUtilities.cpp Mon Dec 29 15:43:58 2003
@@ -199,11 +199,11 @@
// 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 @@
/// 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;
More information about the llvm-commits
mailing list