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
22 lines
693 B
Plaintext
22 lines
693 B
Plaintext
## Warn if --disassemble-functions specifies an unknown symbol.
|
|
|
|
# RUN: yaml2obj -o %t.o %s
|
|
# RUN: rm -f %t.a
|
|
# RUN: llvm-ar qc %t.a %t.o %t.o
|
|
# RUN: llvm-objdump --disassemble-functions=foo %t.o 2>&1 | FileCheck %s
|
|
# RUN: llvm-objdump --disassemble-functions=foo %t.a 2>&1 | FileCheck %s --check-prefix=MULTI
|
|
|
|
--- !ELF
|
|
FileHeader:
|
|
Class: ELFCLASS64
|
|
Data: ELFDATA2LSB
|
|
Type: ET_REL
|
|
Machine: EM_X86_64
|
|
|
|
# CHECK: warning: {{.*}}: failed to disassemble missing function foo
|
|
|
|
# MULTI: file format ELF64-x86-64
|
|
# MULTI: warning: {{.*}}: failed to disassemble missing function foo
|
|
# MULTI: file format ELF64-x86-64
|
|
# MULTI: warning: {{.*}}: failed to disassemble missing function foo
|