summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-objdump/ELFDump.cpp
diff options
context:
space:
mode:
authorGeorge Rimar <grimar@accesssoftek.com>2019-08-21 11:07:31 +0000
committerGeorge Rimar <grimar@accesssoftek.com>2019-08-21 11:07:31 +0000
commitf0f38d9b9deea950659756ddd490c6673199e4aa (patch)
treecef89ff401156ea39c0664d21dc25f844c96a56f /llvm/tools/llvm-objdump/ELFDump.cpp
parent65c58a902d00d8523cbe55d6218ba8d23b6dd185 (diff)
downloadbcm5719-llvm-f0f38d9b9deea950659756ddd490c6673199e4aa.tar.gz
bcm5719-llvm-f0f38d9b9deea950659756ddd490c6673199e4aa.zip
[llvm-objdump] - Cleanup the error reporting.
The error reporting function are not consistent. Before this change: * They had inconsistent naming (e.g. 'error' vs 'report_error'). * Some of them reported the object name, others - dont. * Some of them accepted the case when there was no error. (i.e. error code or Error had a success value). This patch tries to cleanup it a bit. It also renames report_error -> reportError, report_warning -> reportWarning and removes a full stop from messages. Differential revision: https://reviews.llvm.org/D66418 llvm-svn: 369515
Diffstat (limited to 'llvm/tools/llvm-objdump/ELFDump.cpp')
-rw-r--r--llvm/tools/llvm-objdump/ELFDump.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/llvm-objdump/ELFDump.cpp b/llvm/tools/llvm-objdump/ELFDump.cpp
index 9c4d67d0f1b..93d070eee16 100644
--- a/llvm/tools/llvm-objdump/ELFDump.cpp
+++ b/llvm/tools/llvm-objdump/ELFDump.cpp
@@ -178,7 +178,7 @@ void printDynamicSection(const ELFFile<ELFT> *Elf, StringRef Filename) {
outs() << (Data + Dyn.d_un.d_val) << "\n";
continue;
}
- warn(toString(StrTabOrErr.takeError()));
+ reportWarning(toString(StrTabOrErr.takeError()), Filename);
consumeError(StrTabOrErr.takeError());
}
outs() << format(Fmt, (uint64_t)Dyn.d_un.d_val);
OpenPOWER on IntegriCloud