[llvm] 3b02de1 - [Support] Memory.h - remove unnecessary <string> include. NFCI.

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 19 06:32:28 PDT 2021


Author: Simon Pilgrim
Date: 2021-04-19T14:32:07+01:00
New Revision: 3b02de173b2475fc70a4e88983886380403d297e

URL: https://github.com/llvm/llvm-project/commit/3b02de173b2475fc70a4e88983886380403d297e
DIFF: https://github.com/llvm/llvm-project/commit/3b02de173b2475fc70a4e88983886380403d297e.diff

LOG: [Support] Memory.h - remove unnecessary <string> include. NFCI.

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)

Added: 
    

Modified: 
    llvm/include/llvm/Support/Memory.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/Support/Memory.h b/llvm/include/llvm/Support/Memory.h
index c0454223b2fd..31e0abbcdb61 100644
--- a/llvm/include/llvm/Support/Memory.h
+++ b/llvm/include/llvm/Support/Memory.h
@@ -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


        


More information about the llvm-commits mailing list