[lld] r209958 - There is no std::errc:success, remove the llvm one.
Rafael Espindola
rafael.espindola at gmail.com
Fri May 30 20:20:37 PDT 2014
Author: rafael
Date: Fri May 30 22:20:37 2014
New Revision: 209958
URL: http://llvm.org/viewvc/llvm-project?rev=209958&view=rev
Log:
There is no std::errc:success, remove the llvm one.
Modified:
lld/trunk/lib/Core/Error.cpp
Modified: lld/trunk/lib/Core/Error.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/Core/Error.cpp?rev=209958&r1=209957&r2=209958&view=diff
==============================================================================
--- lld/trunk/lib/Core/Error.cpp (original)
+++ lld/trunk/lib/Core/Error.cpp Fri May 30 22:20:37 2014
@@ -43,7 +43,7 @@ public:
llvm::error_condition default_error_condition(int ev) const override {
if (NativeReaderError(ev) == NativeReaderError::success)
- return llvm::errc::success;
+ return llvm::error_condition();
return llvm::errc::invalid_argument;
}
};
@@ -72,7 +72,7 @@ public:
llvm::error_condition default_error_condition(int ev) const override {
if (YamlReaderError(ev) == YamlReaderError::success)
- return llvm::errc::success;
+ return llvm::error_condition();
return llvm::errc::invalid_argument;
}
};
@@ -100,7 +100,7 @@ public:
llvm::error_condition default_error_condition(int ev) const override {
LinkerScriptReaderError e = LinkerScriptReaderError(ev);
if (e == LinkerScriptReaderError::success)
- return llvm::errc::success;
+ return llvm::error_condition();
return llvm::errc::invalid_argument;
}
};
@@ -123,7 +123,7 @@ public:
llvm::error_condition default_error_condition(int ev) const override {
if (InputGraphError(ev) == InputGraphError::success)
- return llvm::errc::success;
+ return llvm::error_condition();
return llvm::errc::invalid_argument;
}
};
@@ -149,7 +149,7 @@ public:
llvm::error_condition default_error_condition(int ev) const override {
if (ReaderError(ev) == ReaderError::success)
- return llvm::errc::success;
+ return llvm::error_condition();
return llvm::errc::invalid_argument;
}
};
More information about the llvm-commits
mailing list