#
3b9efca8 |
| 13-Dec-2016 |
Alexei Starovoitov <alexei.starovoitov@gmail.com> |
[bpf] change llvm-objdump to print dec instead of hex
since bpf instruction stream is multiple of 8 change llvm-objdump to print decimal instruction number instead of hex address, so that users don'
[bpf] change llvm-objdump to print dec instead of hex
since bpf instruction stream is multiple of 8 change llvm-objdump to print decimal instruction number instead of hex address, so that users don't have to do this math manually to match kernel verifier output
Signed-off-by: Alexei Starovoitov <ast@kernel.org> llvm-svn: 289569
show more ...
|
Revision tags: llvmorg-3.9.1, llvmorg-3.9.1-rc3, llvmorg-3.9.1-rc2 |
|
#
2c6f75dd |
| 30-Nov-2016 |
Derek Schuff <dschuff@google.com> |
[WebAssembly] Add llvm-objdump support for wasm file format
This is the first part of an effort to add wasm binary support across all llvm tools.
Patch by Sam Clegg
Differential Revision: https://
[WebAssembly] Add llvm-objdump support for wasm file format
This is the first part of an effort to add wasm binary support across all llvm tools.
Patch by Sam Clegg
Differential Revision: https://reviews.llvm.org/D26172
llvm-svn: 288251
show more ...
|
Revision tags: llvmorg-3.9.1-rc1 |
|
#
7fa40c9f |
| 16-Nov-2016 |
Kevin Enderby <enderby@apple.com> |
General clean up of error handling in llvm-objdump to remove its use of report_fatal_error(). No real functional change with this commit.
The problem with report_fatal_error() is it does not include
General clean up of error handling in llvm-objdump to remove its use of report_fatal_error(). No real functional change with this commit.
The problem with report_fatal_error() is it does not include the tool name and the file name the for which the error message was generated.
Uses of report_fatal_error() were change to report_error() or error() to get a better error and to make the code smaller and cleaner.
Also changed things like error(errorToErrorCode(SOrErr.takeError())) to use report_error() with a file name and the llvm::Error (as well as the ArchitectureName if available) so the error message is printed.
llvm-svn: 287163
show more ...
|
#
6cf09265 |
| 16-Nov-2016 |
Davide Italiano <davide@freebsd.org> |
[ELF] Convert ELF.h to Expected<T>.
This has two advantages: 1) We slowly move away from ErrorOr to the new handling interface, in the hope of having an uniform error handling in LLVM, eventually. 2
[ELF] Convert ELF.h to Expected<T>.
This has two advantages: 1) We slowly move away from ErrorOr to the new handling interface, in the hope of having an uniform error handling in LLVM, eventually. 2) We're starting to have *meaningful* error messages for invalid object ELF files, rather than a generic "parse error". At some point we should include also the offset to improve the quality of the diagnostic.
llvm-svn: 287081
show more ...
|
#
41af4309 |
| 11-Nov-2016 |
Mehdi Amini <mehdi.amini@apple.com> |
Make the Error class constructor protected
This is forcing to use Error::success(), which is in a wide majority of cases a lot more readable.
Differential Revision: https://reviews.llvm.org/D26481
Make the Error class constructor protected
This is forcing to use Error::success(), which is in a wide majority of cases a lot more readable.
Differential Revision: https://reviews.llvm.org/D26481
llvm-svn: 286561
show more ...
|
#
1524f62b |
| 01-Nov-2016 |
Alex Bradbury <asb@lowrisc.org> |
[RISCV] Add RISC-V ELF defines
Add the necessary definitions for RISC-V ELF files, including relocs. Also make necessary trivial change to ELFYaml, llvm-objdump, and llvm-readobj in order to work
[RISCV] Add RISC-V ELF defines
Add the necessary definitions for RISC-V ELF files, including relocs. Also make necessary trivial change to ELFYaml, llvm-objdump, and llvm-readobj in order to work with RISC-V ELFs.
Differential Revision: https://reviews.llvm.org/D23557
llvm-svn: 285708
show more ...
|
#
31d8b7d2 |
| 26-Oct-2016 |
Justin Bogner <mail@justinbogner.com> |
llvm-objdump: Make some error messages more consistent
Most of the version of report_error were quoting the filename and printing a colon between the file name and the error message, but this one wa
llvm-objdump: Make some error messages more consistent
Most of the version of report_error were quoting the filename and printing a colon between the file name and the error message, but this one wasn't doing either of those. Fix the output to be more consistent.
llvm-svn: 285252
show more ...
|
#
732afdd0 |
| 08-Oct-2016 |
Mehdi Amini <mehdi.amini@apple.com> |
Turn cl::values() (for enum) from a vararg function to using C++ variadic template
The core of the change is supposed to be NFC, however it also fixes what I believe was an undefined behavior when c
Turn cl::values() (for enum) from a vararg function to using C++ variadic template
The core of the change is supposed to be NFC, however it also fixes what I believe was an undefined behavior when calling:
va_start(ValueArgs, Desc);
with Desc being a StringRef.
Differential Revision: https://reviews.llvm.org/D25342
llvm-svn: 283671
show more ...
|
#
3381d7a2 |
| 06-Oct-2016 |
Sam Kolton <Sam.Kolton@amd.com> |
[AMDGPU] Disassembler: print label names in branch instructions
Summary: Add AMDGPUSymbolizer for finding names for labels from ELF symbol table. Initialize MCObjectFileInfo with some default values
[AMDGPU] Disassembler: print label names in branch instructions
Summary: Add AMDGPUSymbolizer for finding names for labels from ELF symbol table. Initialize MCObjectFileInfo with some default values.
Reviewers: vpykhtin, artem.tamazov, tstellarAMD
Subscribers: arsenm, kzhuravl, wdng, nhaehnle, yaxunl, tony-tye
Differential Revision: https://reviews.llvm.org/D24802
llvm-svn: 283450
show more ...
|
#
1166112f |
| 28-Sep-2016 |
Dylan McKay <dylanmckay34@gmail.com> |
[AVR] Allow llvm-objdump to handle AVR ELF files
llvm-svn: 282585
|
#
98446106 |
| 26-Sep-2016 |
Sam Kolton <Sam.Kolton@amd.com> |
Revert "[AMDGPU] Disassembler: print label names in branch instructions"
This reverts commit 6c6dbe625263ec9fcf8de0df27263cf147cde550.
llvm-svn: 282396
|
#
1559f762 |
| 26-Sep-2016 |
Sam Kolton <Sam.Kolton@amd.com> |
[AMDGPU] Disassembler: print label names in branch instructions
Summary: Add AMDGPUSymbolizer for finding names for labels from ELF symbol table.
Reviewers: vpykhtin, artem.tamazov, tstellarAMD
Su
[AMDGPU] Disassembler: print label names in branch instructions
Summary: Add AMDGPUSymbolizer for finding names for labels from ELF symbol table.
Reviewers: vpykhtin, artem.tamazov, tstellarAMD
Subscribers: arsenm, kzhuravl, wdng, nhaehnle, yaxunl, tony-tye
Differential Revision: https://reviews.llvm.org/D24802
llvm-svn: 282394
show more ...
|
#
1bdaa20b |
| 18-Sep-2016 |
Davide Italiano <davide@freebsd.org> |
[llvm-objump] Simplify the code. NFCI.
llvm-svn: 281844
|
#
aecf9d0c |
| 12-Sep-2016 |
Hemant Kulkarni <khemant@codeaurora.org> |
llvm-objdump: Add --start-address and --stop-address options
Differential Revision: https://reviews.llvm.org/D24160
llvm-svn: 281232
|
#
5b60f63b |
| 25-Aug-2016 |
Hemant Kulkarni <khemant@codeaurora.org> |
llvm-objdump: ELF: Handle code and data mix in all scenarios
Differential Revision: https://reviews.llvm.org/D23621
llvm-svn: 279770
|
Revision tags: llvmorg-3.9.0, llvmorg-3.9.0-rc3, llvmorg-3.9.0-rc2 |
|
#
e77a0a9a |
| 18-Aug-2016 |
Hemant Kulkarni <khemant@codeaurora.org> |
llvm-objdump: Add Hexagon printer changes for -S/-l options
Differential Revision: https://reviews.llvm.org/D23521
llvm-svn: 279161
|
#
c6bf5475 |
| 18-Aug-2016 |
Saleem Abdulrasool <compnerd@compnerd.org> |
llvm-objdump: add coff import library symbol listing support
This adds behaviour similar to binutils' objdump which can show symbols in an import library. Differences from that stem around the fact
llvm-objdump: add coff import library symbol listing support
This adds behaviour similar to binutils' objdump which can show symbols in an import library. Differences from that stem around the fact that we do not create section symbols nor the all import import descriptor symbol reference. However, this does mean that the tool can serve as a possible replacement for the existing tool.
llvm-svn: 279088
show more ...
|
#
c05d7784 |
| 17-Aug-2016 |
Sam Kolton <Sam.Kolton@amd.com> |
[AMDGPU] llvm-objdump: Skip amd_kernel_code_t only at the begining of kernel symbol.
Summary: This change fix bug in AMDGPU disassembly. Previously, presence of symbols other than kernel symbols cau
[AMDGPU] llvm-objdump: Skip amd_kernel_code_t only at the begining of kernel symbol.
Summary: This change fix bug in AMDGPU disassembly. Previously, presence of symbols other than kernel symbols caused objdump to skip begining of those symbols.
Reviewers: tstellarAMD, vpykhtin, Bigcheese, ruiu
Subscribers: kzhuravl, arsenm
Differential Revision: http://reviews.llvm.org/D21966
llvm-svn: 278921
show more ...
|
#
8dfc0b55 |
| 15-Aug-2016 |
Hemant Kulkarni <khemant@codeaurora.org> |
llvm-objdump: Implement source[line numbers] interleaving
Differential Revsion: https://reviews.llvm.org/D22932
llvm-svn: 278725
|
#
42531260 |
| 12-Aug-2016 |
David Majnemer <david.majnemer@gmail.com> |
Use the range variant of find/find_if instead of unpacking begin/end
If the result of the find is only used to compare against end(), just use is_contained instead.
No functionality change is inten
Use the range variant of find/find_if instead of unpacking begin/end
If the result of the find is only used to compare against end(), just use is_contained instead.
No functionality change is intended.
llvm-svn: 278469
show more ...
|
Revision tags: llvmorg-3.9.0-rc1 |
|
#
f4586039 |
| 29-Jul-2016 |
Kevin Enderby <enderby@apple.com> |
The next step along the way to getting good error messages for bad archives.
As mentioned in commit log for r276686 this next step is adding a new method in the ArchiveMemberHeader class to get the
The next step along the way to getting good error messages for bad archives.
As mentioned in commit log for r276686 this next step is adding a new method in the ArchiveMemberHeader class to get the full name that does proper error checking, and can be use for error messages.
To do this the name of ArchiveMemberHeader::getName() is changed to ArchiveMemberHeader::getRawName() to be consistent with Archive::Child::getRawName(). Then the “new” method is the addition of a new implementation of ArchiveMemberHeader::getName() which gets the full name and provides proper error checking. Which is mostly a rewrite of what was Archive::Child::getName() and cleaning up incorrect uses of llvm_unreachable() in the code which were actually just cases of errors in the input Archives.
Then Archive::Child::getName() is changed to return Expected<> and use the new implementation of ArchiveMemberHeader::getName() .
Also needed to change Archive::getMemoryBufferRef() with these changes to return Expected<> as well to propagate Errors up. As well as changing Archive::isThinMember() to return Expected<> .
llvm-svn: 277177
show more ...
|
#
cfb51f54 |
| 15-Jul-2016 |
Alexei Starovoitov <alexei.starovoitov@gmail.com> |
BPF: Use official ELF e_machine value
The same value for EM_BPF is being propagated to glibc, elfutils, and binutils.
Signed-off-by: Richard Henderson <rth@twiddle.net> Signed-off-by: Alexei Starov
BPF: Use official ELF e_machine value
The same value for EM_BPF is being propagated to glibc, elfutils, and binutils.
Signed-off-by: Richard Henderson <rth@twiddle.net> Signed-off-by: Alexei Starovoitov <ast@kernel.org> llvm-svn: 275633
show more ...
|
#
fc209623 |
| 14-Jul-2016 |
Lang Hames <lhames@gmail.com> |
[Object] Re-apply r275316 now that I have the corresponding LLD patch ready.
llvm-svn: 275361
|
#
ae610ab5 |
| 14-Jul-2016 |
Lang Hames <lhames@gmail.com> |
[Object] Revert r275316, Archive::child_iterator changes, while I update lld.
Should fix the bots broken by r275316.
llvm-svn: 275353
|
#
c2773e97 |
| 13-Jul-2016 |
Lang Hames <lhames@gmail.com> |
[Object] Change Archive::child_iterator for better interop with Error/Expected.
See http://reviews.llvm.org/D22079
Changes the Archive::child_begin and Archive::children to require a reference to a
[Object] Change Archive::child_iterator for better interop with Error/Expected.
See http://reviews.llvm.org/D22079
Changes the Archive::child_begin and Archive::children to require a reference to an Error. If iterator increment fails (because the archive header is damaged) the iterator will be set to 'end()', and the error stored in the given Error&. The Error value should be checked by the user immediately after the loop. E.g.:
Error Err; for (auto &C : A->children(Err)) { // Do something with archive child C. } // Check the error immediately after the loop. if (Err) return Err;
Failure to check the Error will result in an abort() when the Error goes out of scope (as guaranteed by the Error class).
llvm-svn: 275316
show more ...
|