Don't use 'using std::error_code' in include/llvm.
[oota-llvm.git] / lib / Support / Unix / Program.inc
index 1225a9c042e514fd28628ccec84ad117361b9ab3..d8506643349c435ac87c95378ffb8a28d8717e90 100644 (file)
@@ -48,6 +48,8 @@
 #endif
 
 namespace llvm {
+using std::error_code;
+
 using namespace sys;
 
 ProcessInfo::ProcessInfo() : Pid(0), ReturnCode(0) {}
@@ -427,12 +429,12 @@ ProcessInfo sys::Wait(const ProcessInfo &PI, unsigned SecondsToWait,
 
 error_code sys::ChangeStdinToBinary(){
   // Do nothing, as Unix doesn't differentiate between text and binary.
-  return make_error_code(errc::success);
+  return error_code();
 }
 
 error_code sys::ChangeStdoutToBinary(){
   // Do nothing, as Unix doesn't differentiate between text and binary.
-  return make_error_code(errc::success);
+  return error_code();
 }
 
 bool llvm::sys::argumentsFitWithinSystemLimits(ArrayRef<const char*> Args) {