summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-size/llvm-size.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-size/llvm-size.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-size/llvm-size.cpp')
-rw-r--r--llvm/tools/llvm-size/llvm-size.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/llvm/tools/llvm-size/llvm-size.cpp b/llvm/tools/llvm-size/llvm-size.cpp
index f0ec7fa6af6..1ea22a937a0 100644
--- a/llvm/tools/llvm-size/llvm-size.cpp
+++ b/llvm/tools/llvm-size/llvm-size.cpp
@@ -30,7 +30,6 @@
#include <system_error>
using namespace llvm;
using namespace object;
-using std::error_code;
enum OutputFormatTy {berkeley, sysv};
static cl::opt<OutputFormatTy>
@@ -69,7 +68,7 @@ static cl::list<std::string>
static std::string ToolName;
/// @brief If ec is not success, print the error and return true.
-static bool error(error_code ec) {
+static bool error(std::error_code ec) {
if (!ec) return false;
outs() << ToolName << ": error reading file: " << ec.message() << ".\n";
@@ -236,7 +235,7 @@ static void PrintFileSectionSizes(StringRef file) {
// Attempt to open the binary.
ErrorOr<Binary *> BinaryOrErr = createBinary(file);
- if (error_code EC = BinaryOrErr.getError()) {
+ if (std::error_code EC = BinaryOrErr.getError()) {
errs() << ToolName << ": " << file << ": " << EC.message() << ".\n";
return;
}
@@ -247,7 +246,7 @@ static void PrintFileSectionSizes(StringRef file) {
for (object::Archive::child_iterator i = a->child_begin(),
e = a->child_end(); i != e; ++i) {
std::unique_ptr<Binary> child;
- if (error_code ec = i->getAsBinary(child)) {
+ if (std::error_code ec = i->getAsBinary(child)) {
errs() << ToolName << ": " << file << ": " << ec.message() << ".\n";
continue;
}
OpenPOWER on IntegriCloud