llvm.org GIT mirror llvm / c145fd3
There is no std::errc::success, remove the llvm one. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@209960 91177308-0d34-0410-b5e6-96231b3b80d8 Rafael Espindola 6 years ago
7 changed file(s) with 7 addition(s) and 9 deletion(s). Raw diff Collapse all Expand all
482482 // for them:
483483
484484 enum class errc {
485 success = 0,
486485 address_family_not_supported = EAFNOSUPPORT,
487486 address_in_use = EADDRINUSE,
488487 address_not_available = EADDRNOTAVAIL,
809808 //
810809 // error_code( ::GetLastError(), system_category() )
811810 enum class windows_error {
812 success = 0,
813811 // These names and values are based on Windows WinError.h
814812 // This is not a complete list. Add to this list if you need to explicitly
815813 // check for it.
4848
4949 error_condition _object_error_category::default_error_condition(int ev) const {
5050 if (ev == object_error::success)
51 return errc::success;
51 return error_condition();
5252 return errc::invalid_argument;
5353 }
5454
5353 }
5454 error_condition default_error_condition(int EV) const override {
5555 if (EV == instrprof_error::success)
56 return errc::success;
56 return error_condition();
5757 return errc::invalid_argument;
5858 }
5959 };
123123 // Create a link from the lock file name. If this succeeds, we're done.
124124 error_code EC =
125125 sys::fs::create_link(UniqueLockFileName.str(), LockFileName.str());
126 if (EC == errc::success)
126 if (!EC)
127127 return;
128128
129129 if (EC != errc::file_exists) {
426426
427427 error_code sys::ChangeStdinToBinary(){
428428 // Do nothing, as Unix doesn't differentiate between text and binary.
429 return make_error_code(errc::success);
429 return error_code();
430430 }
431431
432432 error_code sys::ChangeStdoutToBinary(){
433433 // Do nothing, as Unix doesn't differentiate between text and binary.
434 return make_error_code(errc::success);
434 return error_code();
435435 }
436436
437437 bool llvm::sys::argumentsFitWithinSystemLimits(ArrayRef Args) {
4949
5050 error_condition _readobj_error_category::default_error_condition(int ev) const {
5151 if (ev == readobj_error::success)
52 return errc::success;
52 return error_condition();
5353 return errc::invalid_argument;
5454 }
5555
4141 error_condition
4242 _obj2yaml_error_category::default_error_condition(int ev) const {
4343 if (ev == obj2yaml_error::success)
44 return errc::success;
44 return error_condition();
4545 return errc::invalid_argument;
4646 }
4747