diff options
author | Chris Lattner <sabre@nondot.org> | 2003-12-29 21:43:58 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-12-29 21:43:58 +0000 |
commit | 9b448b703fbd60951a57e4d912bcbaf0181ed253 (patch) | |
tree | 0d08e012f6d1536c590577ff7a22d955434cd5c1 /include | |
parent | 2d6481cc2a168c4a867f8046119607f72552ef31 (diff) | |
download | external_llvm-9b448b703fbd60951a57e4d912bcbaf0181ed253.zip external_llvm-9b448b703fbd60951a57e4d912bcbaf0181ed253.tar.gz external_llvm-9b448b703fbd60951a57e4d912bcbaf0181ed253.tar.bz2 |
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
Diffstat (limited to 'include')
-rw-r--r-- | include/Support/FileUtilities.h | 6 | ||||
-rw-r--r-- | include/llvm/Support/FileUtilities.h | 6 |
2 files changed, 6 insertions, 6 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 |