diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2014-06-13 03:07:50 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2014-06-13 03:07:50 +0000 |
commit | 4453e4294515bfc0cff16fdd7278f217d9efba4f (patch) | |
tree | 3d7139f652f8d50a7f9cf89807e50d89cb4f2e3e /llvm/tools/llvm-objdump/llvm-objdump.cpp | |
parent | 567b1546ac5446005757eaf3a2875a75648c8fc4 (diff) | |
download | bcm5719-llvm-4453e4294515bfc0cff16fdd7278f217d9efba4f.tar.gz bcm5719-llvm-4453e4294515bfc0cff16fdd7278f217d9efba4f.zip |
Remove 'using std::error_code' from tools.
llvm-svn: 210876
Diffstat (limited to 'llvm/tools/llvm-objdump/llvm-objdump.cpp')
-rw-r--r-- | llvm/tools/llvm-objdump/llvm-objdump.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/llvm/tools/llvm-objdump/llvm-objdump.cpp b/llvm/tools/llvm-objdump/llvm-objdump.cpp index 254c802aec4..e12ff3de2bb 100644 --- a/llvm/tools/llvm-objdump/llvm-objdump.cpp +++ b/llvm/tools/llvm-objdump/llvm-objdump.cpp @@ -64,7 +64,6 @@ using namespace llvm; using namespace object; -using std::error_code; static cl::list<std::string> InputFilenames(cl::Positional, cl::desc("<input object files>"),cl::ZeroOrMore); @@ -149,7 +148,7 @@ YAMLCFG("yaml-cfg", static StringRef ToolName; -bool llvm::error(error_code EC) { +bool llvm::error(std::error_code EC) { if (!EC) return false; @@ -396,7 +395,7 @@ static void DisassembleObject(const ObjectFile *Obj, bool InlineRelocs) { // Create a mapping, RelocSecs = SectionRelocMap[S], where sections // in RelocSecs contain the relocations for section S. - error_code EC; + std::error_code EC; std::map<SectionRef, SmallVector<SectionRef, 1>> SectionRelocMap; for (const SectionRef &Section : Obj->sections()) { section_iterator Sec2 = Section.getRelocatedSection(); @@ -621,7 +620,7 @@ static void PrintSectionHeaders(const ObjectFile *Obj) { } static void PrintSectionContents(const ObjectFile *Obj) { - error_code EC; + std::error_code EC; for (const SectionRef &Section : Obj->sections()) { StringRef Name; StringRef Contents; @@ -852,7 +851,7 @@ static void DumpArchive(const Archive *a) { for (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)) { // Ignore non-object files. if (EC != object_error::invalid_file_type) errs() << ToolName << ": '" << a->getFileName() << "': " << EC.message() @@ -882,7 +881,7 @@ static void DumpInput(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; } |