From 9b448b703fbd60951a57e4d912bcbaf0181ed253 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 29 Dec 2003 21:43:58 +0000 Subject: Add trivial exception specs to produce better code since the methods cannot be inlined. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10643 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Support/FileUtilities.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/Support/FileUtilities.cpp') diff --git a/lib/Support/FileUtilities.cpp b/lib/Support/FileUtilities.cpp index 02b4edd557..5b7f7b01c5 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; -- cgit v1.2.3