From 4453e4294515bfc0cff16fdd7278f217d9efba4f 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. llvm-svn: 210876 --- llvm/tools/llvm-ar/llvm-ar.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'llvm/tools/llvm-ar/llvm-ar.cpp') diff --git a/llvm/tools/llvm-ar/llvm-ar.cpp b/llvm/tools/llvm-ar/llvm-ar.cpp index d0d4f1477da..227adb44215 100644 --- a/llvm/tools/llvm-ar/llvm-ar.cpp +++ b/llvm/tools/llvm-ar/llvm-ar.cpp @@ -36,7 +36,6 @@ #endif using namespace llvm; -using std::error_code; // The name this program was invoked as. static StringRef ToolName; @@ -54,7 +53,7 @@ LLVM_ATTRIBUTE_NORETURN static void fail(Twine Error) { exit(1); } -static void failIfError(error_code EC, Twine Context = "") { +static void failIfError(std::error_code EC, Twine Context = "") { if (!EC) return; @@ -939,7 +938,7 @@ int ar_main(char **argv) { static int performOperation(ArchiveOperation Operation) { // Create or open the archive object. std::unique_ptr Buf; - error_code EC = MemoryBuffer::getFile(ArchiveName, Buf, -1, false); + std::error_code EC = MemoryBuffer::getFile(ArchiveName, Buf, -1, false); if (EC && EC != std::errc::no_such_file_or_directory) { errs() << ToolName << ": error opening '" << ArchiveName << "': " << EC.message() << "!\n"; -- cgit v1.2.3