diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2014-06-12 21:46:39 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2014-06-12 21:46:39 +0000 |
commit | 5c792faa0e5560bc148c973f3df658eb3bb2061e (patch) | |
tree | 6ede225c2e59359a60804bb1d823f9db9072892a /include/llvm/Support/Memory.h | |
parent | 7418e1f4bd5a4bda32af18f46ff2837221d12d5c (diff) | |
download | llvm-5c792faa0e5560bc148c973f3df658eb3bb2061e.tar.gz llvm-5c792faa0e5560bc148c973f3df658eb3bb2061e.tar.bz2 llvm-5c792faa0e5560bc148c973f3df658eb3bb2061e.tar.xz |
Don't use 'using std::error_code' in include/llvm.
This should make sure that most new uses use the std prefix.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210835 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/Memory.h')
-rw-r--r-- | include/llvm/Support/Memory.h | 9 |
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 |