[Support] Memory.h - remove unnecessary <string> include. NFCI.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Mon, 19 Apr 2021 13:07:01 +0000 (14:07 +0100)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Mon, 19 Apr 2021 13:32:07 +0000 (14:32 +0100)
protectMappedMemory no longer returns an error message, so we don't need std::string - I've fixed an unnecessary doxygen entry as well (oddly I wasn't seeing a Wdocumentation warning)

llvm/include/llvm/Support/Memory.h

index c045422..31e0abb 100644 (file)
@@ -14,7 +14,6 @@
 #define LLVM_SUPPORT_MEMORY_H
 
 #include "llvm/Support/DataTypes.h"
-#include <string>
 #include <system_error>
 
 namespace llvm {
@@ -116,7 +115,6 @@ namespace sys {
     /// memory was not allocated using the allocateMappedMemory method.
     /// \p Block describes the memory block to be protected.
     /// \p Flags specifies the new protection state to be assigned to the block.
-    /// \p ErrMsg [out] returns a string describing any error that occurred.
     ///
     /// If \p Flags is MF_WRITE, the actual behavior varies
     /// with the operating system (i.e. MF_READ | MF_WRITE on Windows) and the