diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2004-10-04 17:26:26 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2004-10-04 17:26:26 +0000 |
commit | 34637df55f2e207ad62045b299837e1a14f37bdd (patch) | |
tree | 5ecbe511073f8aebd96007bd609df4338e330199 /llvm | |
parent | b4abe320bf9c58d4197ece1ba86ebc3a9d74ad06 (diff) | |
download | bcm5719-llvm-34637df55f2e207ad62045b299837e1a14f37bdd.tar.gz bcm5719-llvm-34637df55f2e207ad62045b299837e1a14f37bdd.zip |
Minor corrections suggested by Chris' ever-watchful eye.
llvm-svn: 16651
Diffstat (limited to 'llvm')
-rw-r--r-- | llvm/include/llvm/System/MappedFile.h | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/llvm/include/llvm/System/MappedFile.h b/llvm/include/llvm/System/MappedFile.h index 3aa1840319b..f6b656c7bab 100644 --- a/llvm/include/llvm/System/MappedFile.h +++ b/llvm/include/llvm/System/MappedFile.h @@ -48,16 +48,11 @@ namespace sys { /// system with the mapping \p options provided. /// @throws std::string if an error occurs MappedFile(const Path& path, int options = READ_ACCESS) - : path_(path), options_(options), base_(0), info_(0) { - initialize(); - } + : path_(path), options_(options), base_(0), info_(0) { initialize(); } /// Destruct a MappedFile and release all memory associated with it. /// @throws std::string if an error occurs - ~MappedFile() { - terminate(); - path_.clear(); - } + ~MappedFile() { terminate(); } /// @} /// @name Accessors @@ -123,7 +118,7 @@ namespace sys { /// map(), base(), or baseChar() members as they may point to invalid /// areas of memory after this call. /// @throws std::string if an error occurs - /// @brief Set a full path from a std::string + /// @brief Set the size of the file and memory mapping. void size(size_t new_size); /// @} @@ -143,7 +138,7 @@ namespace sys { MappedFileInfo* info_; ///< Platform specific info for the mapping /// @} - /// @name Deprecated + /// @name Disabled /// @{ private: ///< Disallow assignment |