summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-ar/llvm-ar.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2014-06-13 03:07:50 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2014-06-13 03:07:50 +0000
commit4453e4294515bfc0cff16fdd7278f217d9efba4f (patch)
tree3d7139f652f8d50a7f9cf89807e50d89cb4f2e3e /llvm/tools/llvm-ar/llvm-ar.cpp
parent567b1546ac5446005757eaf3a2875a75648c8fc4 (diff)
downloadbcm5719-llvm-4453e4294515bfc0cff16fdd7278f217d9efba4f.tar.gz
bcm5719-llvm-4453e4294515bfc0cff16fdd7278f217d9efba4f.zip
Remove 'using std::error_code' from tools.
llvm-svn: 210876
Diffstat (limited to 'llvm/tools/llvm-ar/llvm-ar.cpp')
-rw-r--r--llvm/tools/llvm-ar/llvm-ar.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/tools/llvm-ar/llvm-ar.cpp b/llvm/tools/llvm-ar/llvm-ar.cpp
index d0d4f1477da..227adb44215 100644
--- a/llvm/tools/llvm-ar/llvm-ar.cpp
+++ b/llvm/tools/llvm-ar/llvm-ar.cpp
@@ -36,7 +36,6 @@
#endif
using namespace llvm;
-using std::error_code;
// The name this program was invoked as.
static StringRef ToolName;
@@ -54,7 +53,7 @@ LLVM_ATTRIBUTE_NORETURN static void fail(Twine Error) {
exit(1);
}
-static void failIfError(error_code EC, Twine Context = "") {
+static void failIfError(std::error_code EC, Twine Context = "") {
if (!EC)
return;
@@ -939,7 +938,7 @@ int ar_main(char **argv) {
static int performOperation(ArchiveOperation Operation) {
// Create or open the archive object.
std::unique_ptr<MemoryBuffer> Buf;
- error_code EC = MemoryBuffer::getFile(ArchiveName, Buf, -1, false);
+ std::error_code EC = MemoryBuffer::getFile(ArchiveName, Buf, -1, false);
if (EC && EC != std::errc::no_such_file_or_directory) {
errs() << ToolName << ": error opening '" << ArchiveName
<< "': " << EC.message() << "!\n";
OpenPOWER on IntegriCloud