From 1ad45020ec8518a5c9bea7ec1007798a456bff56 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Fri, 13 Jun 2014 03:07:50 +0000 Subject: Remove 'using std::error_code' from tools. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210876 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/lli/RemoteMemoryManager.cpp | 3 +-- tools/lli/lli.cpp | 5 ++--- 2 files changed, 3 insertions(+), 5 deletions(-) (limited to 'tools/lli') diff --git a/tools/lli/RemoteMemoryManager.cpp b/tools/lli/RemoteMemoryManager.cpp index 041f7c7afd..481651772a 100644 --- a/tools/lli/RemoteMemoryManager.cpp +++ b/tools/lli/RemoteMemoryManager.cpp @@ -19,7 +19,6 @@ #include "llvm/Support/Format.h" using namespace llvm; -using std::error_code; #define DEBUG_TYPE "lli" @@ -62,7 +61,7 @@ allocateDataSection(uintptr_t Size, unsigned Alignment, } sys::MemoryBlock RemoteMemoryManager::allocateSection(uintptr_t Size) { - error_code ec; + std::error_code ec; sys::MemoryBlock MB = sys::Memory::allocateMappedMemory(Size, &Near, sys::Memory::MF_READ | diff --git a/tools/lli/lli.cpp b/tools/lli/lli.cpp index 2c8a4749fd..73a19ac667 100644 --- a/tools/lli/lli.cpp +++ b/tools/lli/lli.cpp @@ -62,7 +62,6 @@ #endif using namespace llvm; -using std::error_code; #define DEBUG_TYPE "lli" @@ -416,7 +415,7 @@ int main(int argc, char **argv, char * const *envp) { // If not jitting lazily, load the whole bitcode file eagerly too. if (NoLazyCompilation) { - if (error_code EC = Mod->materializeAllPermanently()) { + if (std::error_code EC = Mod->materializeAllPermanently()) { errs() << argv[0] << ": bitcode didn't read correctly.\n"; errs() << "Reason: " << EC.message() << "\n"; exit(1); @@ -540,7 +539,7 @@ int main(int argc, char **argv, char * const *envp) { for (unsigned i = 0, e = ExtraArchives.size(); i != e; ++i) { std::unique_ptr ArBuf; - error_code ec; + std::error_code ec; ec = MemoryBuffer::getFileOrSTDIN(ExtraArchives[i], ArBuf); if (ec) { Err.print(argv[0], errs()); -- cgit v1.2.3