Remove the last uses of 'using std::error_code'
[oota-llvm.git] / utils / FileUpdate / FileUpdate.cpp
index 2bf5e067a4e9170539c2a95b9a4032a24db16549..c185dd05e0e8d6f8548958355bebfd92239fe092 100644 (file)
@@ -21,7 +21,6 @@
 #include "llvm/Support/ToolOutputFile.h"
 #include <system_error>
 using namespace llvm;
-using std::error_code;
 
 static cl::opt<bool>
 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<MemoryBuffer> 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;