From 250305156a998db624f93d9aab919c9ed7be27aa Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Fri, 13 Jun 2014 03:20:08 +0000 Subject: Remove the last uses of 'using std::error_code' This finishes the transition to std::error_code. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210877 91177308-0d34-0410-b5e6-96231b3b80d8 --- utils/FileUpdate/FileUpdate.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'utils/FileUpdate') diff --git a/utils/FileUpdate/FileUpdate.cpp b/utils/FileUpdate/FileUpdate.cpp index 2bf5e067a4..c185dd05e0 100644 --- a/utils/FileUpdate/FileUpdate.cpp +++ b/utils/FileUpdate/FileUpdate.cpp @@ -21,7 +21,6 @@ #include "llvm/Support/ToolOutputFile.h" #include using namespace llvm; -using std::error_code; static cl::opt Quiet("quiet", cl::desc("Don't print unnecessary status information"), @@ -46,7 +45,7 @@ int main(int argc, char **argv) { // Get the input data. std::unique_ptr In; - if (error_code ec = MemoryBuffer::getFileOrSTDIN(InputFilename, In)) { + if (std::error_code ec = MemoryBuffer::getFileOrSTDIN(InputFilename, In)) { errs() << argv[0] << ": error: Unable to get input '" << InputFilename << "': " << ec.message() << '\n'; return 1; -- cgit v1.2.3