summaryrefslogtreecommitdiff
path: root/include/llvm/Support/Program.h
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2014-06-12 21:46:39 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2014-06-12 21:46:39 +0000
commit5c792faa0e5560bc148c973f3df658eb3bb2061e (patch)
tree6ede225c2e59359a60804bb1d823f9db9072892a /include/llvm/Support/Program.h
parent7418e1f4bd5a4bda32af18f46ff2837221d12d5c (diff)
downloadllvm-5c792faa0e5560bc148c973f3df658eb3bb2061e.tar.gz
llvm-5c792faa0e5560bc148c973f3df658eb3bb2061e.tar.bz2
llvm-5c792faa0e5560bc148c973f3df658eb3bb2061e.tar.xz
Don't use 'using std::error_code' in include/llvm.
This should make sure that most new uses use the std prefix. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210835 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/Program.h')
-rw-r--r--include/llvm/Support/Program.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/llvm/Support/Program.h b/include/llvm/Support/Program.h
index c1269508e0..51279a9b86 100644
--- a/include/llvm/Support/Program.h
+++ b/include/llvm/Support/Program.h
@@ -19,7 +19,6 @@
#include <system_error>
namespace llvm {
-using std::error_code;
namespace sys {
/// This is the OS-specific separator for PATH like environment variables:
@@ -67,8 +66,8 @@ struct ProcessInfo {
// These functions change the specified standard stream (stdin or stdout) to
// binary mode. They return errc::success if the specified stream
// was changed. Otherwise a platform dependent error is returned.
- error_code ChangeStdinToBinary();
- error_code ChangeStdoutToBinary();
+ std::error_code ChangeStdinToBinary();
+ std::error_code ChangeStdoutToBinary();
/// This function executes the program using the arguments provided. The
/// invoked program will inherit the stdin, stdout, and stderr file