diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2014-06-13 03:07:50 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2014-06-13 03:07:50 +0000 |
commit | 1ad45020ec8518a5c9bea7ec1007798a456bff56 (patch) | |
tree | 07430093f7f8e4eaf7cfa61b960406627e961c54 /tools/lli | |
parent | 7532b4038f2ce16cc285ed6b3254053f30088faa (diff) | |
download | llvm-1ad45020ec8518a5c9bea7ec1007798a456bff56.tar.gz llvm-1ad45020ec8518a5c9bea7ec1007798a456bff56.tar.bz2 llvm-1ad45020ec8518a5c9bea7ec1007798a456bff56.tar.xz |
Remove 'using std::error_code' from tools.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210876 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/lli')
-rw-r--r-- | tools/lli/RemoteMemoryManager.cpp | 3 | ||||
-rw-r--r-- | tools/lli/lli.cpp | 5 |
2 files changed, 3 insertions, 5 deletions
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<MemoryBuffer> ArBuf; - error_code ec; + std::error_code ec; ec = MemoryBuffer::getFileOrSTDIN(ExtraArchives[i], ArBuf); if (ec) { Err.print(argv[0], errs()); |