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-readobj/Win64EHDumper.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-readobj/Win64EHDumper.cpp')
-rw-r--r-- | llvm/tools/llvm-readobj/Win64EHDumper.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/llvm/tools/llvm-readobj/Win64EHDumper.cpp b/llvm/tools/llvm-readobj/Win64EHDumper.cpp index f3749fc36cc..f058632a8ce 100644 --- a/llvm/tools/llvm-readobj/Win64EHDumper.cpp +++ b/llvm/tools/llvm-readobj/Win64EHDumper.cpp @@ -16,7 +16,6 @@ using namespace llvm; using namespace llvm::object; using namespace llvm::Win64EH; -using std::error_code; static const EnumEntry<unsigned> UnwindFlags[] = { { "ExceptionHandler", UNW_ExceptionHandler }, @@ -135,20 +134,21 @@ static std::string formatSymbol(const Dumper::Context &Ctx, return OS.str(); } -static error_code resolveRelocation(const Dumper::Context &Ctx, - const coff_section *Section, - uint64_t Offset, - const coff_section *&ResolvedSection, - uint64_t &ResolvedAddress) { +static std::error_code resolveRelocation(const Dumper::Context &Ctx, + const coff_section *Section, + uint64_t Offset, + const coff_section *&ResolvedSection, + uint64_t &ResolvedAddress) { SymbolRef Symbol; - if (error_code EC = Ctx.ResolveSymbol(Section, Offset, Symbol, Ctx.UserData)) + if (std::error_code EC = + Ctx.ResolveSymbol(Section, Offset, Symbol, Ctx.UserData)) return EC; - if (error_code EC = Symbol.getAddress(ResolvedAddress)) + if (std::error_code EC = Symbol.getAddress(ResolvedAddress)) return EC; section_iterator SI = Ctx.COFF.section_begin(); - if (error_code EC = Symbol.getSection(SI)) + if (std::error_code EC = Symbol.getSection(SI)) return EC; ResolvedSection = Ctx.COFF.getCOFFSection(*SI); |