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 | 4453e4294515bfc0cff16fdd7278f217d9efba4f (patch) | |
tree | 3d7139f652f8d50a7f9cf89807e50d89cb4f2e3e /llvm/tools/lli/lli.cpp | |
parent | 567b1546ac5446005757eaf3a2875a75648c8fc4 (diff) | |
download | bcm5719-llvm-4453e4294515bfc0cff16fdd7278f217d9efba4f.tar.gz bcm5719-llvm-4453e4294515bfc0cff16fdd7278f217d9efba4f.zip |
Remove 'using std::error_code' from tools.
llvm-svn: 210876
Diffstat (limited to 'llvm/tools/lli/lli.cpp')
-rw-r--r-- | llvm/tools/lli/lli.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/tools/lli/lli.cpp b/llvm/tools/lli/lli.cpp index 2c8a4749fdb..73a19ac6679 100644 --- a/llvm/tools/lli/lli.cpp +++ b/llvm/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()); |