Add trivial exception specs to produce better code since the methods cannot
[oota-llvm.git] / include / Support / FileUtilities.h
index a6a1dc2456ffb8b3da0096dbe542cec3abf5da72..978b61bfd1775bf068047fbab7987e2daec3db38 100644 (file)
@@ -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