summaryrefslogtreecommitdiff
path: root/include/llvm/Support/Memory.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm/Support/Memory.h')
-rw-r--r--include/llvm/Support/Memory.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/include/llvm/Support/Memory.h b/include/llvm/Support/Memory.h
index acd7a04080..b4305cb697 100644
--- a/include/llvm/Support/Memory.h
+++ b/include/llvm/Support/Memory.h
@@ -19,7 +19,6 @@
#include <system_error>
namespace llvm {
-using std::error_code;
namespace sys {
/// This class encapsulates the notion of a memory block which has an address
@@ -78,7 +77,7 @@ namespace sys {
static MemoryBlock allocateMappedMemory(size_t NumBytes,
const MemoryBlock *const NearBlock,
unsigned Flags,
- error_code &EC);
+ std::error_code &EC);
/// This method releases a block of memory that was allocated with the
/// allocateMappedMemory method. It should not be used to release any
@@ -89,7 +88,7 @@ namespace sys {
/// describing the failure if an error occurred.
///
/// @brief Release mapped memory.
- static error_code releaseMappedMemory(MemoryBlock &Block);
+ static std::error_code releaseMappedMemory(MemoryBlock &Block);
/// This method sets the protection flags for a block of memory to the
/// state specified by /p Flags. The behavior is not specified if the
@@ -106,8 +105,8 @@ namespace sys {
/// describing the failure if an error occurred.
///
/// @brief Set memory protection state.
- static error_code protectMappedMemory(const MemoryBlock &Block,
- unsigned Flags);
+ static std::error_code protectMappedMemory(const MemoryBlock &Block,
+ unsigned Flags);
/// This method allocates a block of Read/Write/Execute memory that is
/// suitable for executing dynamically generated code (e.g. JIT). An