Revision tags: llvmorg-7.0.0-rc2 |
|
#
030ad37e |
| 20-Aug-2018 |
Zachary Turner <zturner@google.com> |
[llvm-objdump] Add ability to demangle COFF symbols.
llvm-svn: 340221
|
#
7b274544 |
| 08-Aug-2018 |
Petr Hosek <phosek@chromium.org> |
[ADT] Normalize empty triple components
LLVM triple normalization is handling "unknown" and empty components differently; for example given "x86_64-unknown-linux-gnu" and "x86_64-linux-gnu" which sh
[ADT] Normalize empty triple components
LLVM triple normalization is handling "unknown" and empty components differently; for example given "x86_64-unknown-linux-gnu" and "x86_64-linux-gnu" which should be equivalent, triple normalization returns "x86_64-unknown-linux-gnu" and "x86_64--linux-gnu". autoconf's config.sub returns "x86_64-unknown-linux-gnu" for both "x86_64-linux-gnu" and "x86_64-unknown-linux-gnu". This changes the triple normalization to behave the same way, replacing empty triple components with "unknown".
This addresses PR37129.
Differential Revision: https://reviews.llvm.org/D50219
llvm-svn: 339294
show more ...
|
Revision tags: llvmorg-7.0.0-rc1 |
|
#
3fb120f1 |
| 03-Aug-2018 |
Dave Lee <davelee.com@gmail.com> |
objdump: Better handling of Mach-O universal binaries
Summary: With Mach-O, there is a flag requirement discrepancy between working with universal binaries and thin binaries. Many flags that don't r
objdump: Better handling of Mach-O universal binaries
Summary: With Mach-O, there is a flag requirement discrepancy between working with universal binaries and thin binaries. Many flags that don't require the `-macho` flag (for example `-private-headers` and `-disassemble`) fail to work on universal binaries unless `-macho` is given. When this happens, the error message is unhelpful, stating:
The file was not recognized as a valid object file.
Which can lead to confusion.
This change allows generic flags to be used on universal binaries with and without the `-macho` flag. This means flags that can be used for thin files can be used consistently with fat files too.
To do this, the universal binary support within `ParseInputMachO()` is extracted into a new function. This new function is called directly from `DumpInput()` when the input binary is universal. Additionally the `-arch` flag validation in `ParseInputMachO()` was extracted to be reused.
Reviewers: compnerd
Reviewed By: compnerd
Subscribers: keith, llvm-commits
Differential Revision: https://reviews.llvm.org/D48702
llvm-svn: 338792
show more ...
|
#
6f1da6e3 |
| 26-Jul-2018 |
Michael Kruse <llvm@meinersbur.de> |
[ADT] Replace std::isprint by llvm::isPrint.
The standard library functions ::isprint/std::isprint have platform- and locale-dependent behavior which makes LLVM's output less predictable. In particu
[ADT] Replace std::isprint by llvm::isPrint.
The standard library functions ::isprint/std::isprint have platform- and locale-dependent behavior which makes LLVM's output less predictable. In particular, regression tests my fail depending on the implementation of these functions.
Implement llvm::isPrint in StringExtras.h with a standard behavior and replace all uses of ::isprint/std::isprint by a call it llvm::isPrint. The function is inlined and does not look up language settings so it should perform better than the standard library's version.
Such a replacement has already been done for isdigit, isalpha, isxdigit in r314883. gtest does the same in gtest-printers.cc using the following justification:
// Returns true if c is a printable ASCII character. We test the // value of c directly instead of calling isprint(), which is buggy on // Windows Mobile. inline bool IsPrintableAscii(wchar_t c) { return 0x20 <= c && c <= 0x7E; }
Similar issues have also been encountered by Julia: https://github.com/JuliaLang/julia/issues/7416
I noticed the problem myself when on Windows isprint('\t') started to evaluate to true (see https://stackoverflow.com/questions/51435249) and thus caused several unit tests to fail. The result of isprint doesn't seem to be well-defined even for ASCII characters. Therefore I suggest to replace isprint by a platform-independent version.
Differential Revision: https://reviews.llvm.org/D49680
llvm-svn: 338034
show more ...
|
#
0913dcd7 |
| 25-Jul-2018 |
Paul Semel <semelpaul@gmail.com> |
[llvm-objdump] Add dynamic section printing to private-headers option
Differential Revision: https://reviews.llvm.org/D49016
llvm-svn: 337902
|
#
007dedbf |
| 18-Jul-2018 |
Paul Semel <semelpaul@gmail.com> |
[llvm-objdump] Add -demangle (-C) option
Differential Revision: https://reviews.llvm.org/D49043
llvm-svn: 337401
|
#
c1090da8 |
| 18-Jul-2018 |
George Rimar <grimar@accesssoftek.com> |
[llvm-objdump] - An attempt to fix BB after r337361.
Seems r337361 is the reason of the following ARM BB failures: http://lab.llvm.org:8011/builders/clang-cmake-armv8-quick http://lab.llvm.org:8011/
[llvm-objdump] - An attempt to fix BB after r337361.
Seems r337361 is the reason of the following ARM BB failures: http://lab.llvm.org:8011/builders/clang-cmake-armv8-quick http://lab.llvm.org:8011/builders/clang-cmake-armv8-full/builds/4633
Reason is unclear to me, other bots are OK. If this will not help, I'll revert r337361.
llvm-svn: 337371
show more ...
|
#
e35e6448 |
| 18-Jul-2018 |
George Rimar <grimar@accesssoftek.com> |
[llvm-objdump] - Stop reporting bogus section IDs.
Imagine we have a file with few sections, and one of them is .foo with index N != 0.
Problem is that when llvm-objdump is given a -section=.foo pa
[llvm-objdump] - Stop reporting bogus section IDs.
Imagine we have a file with few sections, and one of them is .foo with index N != 0.
Problem is that when llvm-objdump is given a -section=.foo parameter it lists .foo as a section at index 0. That makes impossible to write test cases which needs to find the index of the particular section, while ignoring dumping of others.
The patch fixes that.
Differential revision: https://reviews.llvm.org/D49372
llvm-svn: 337361
show more ...
|
#
0f9ca2d9 |
| 11-Jul-2018 |
Paul Semel <semelpaul@gmail.com> |
Revert "[llvm-objdump] Add -demangle (-C) option"
This reverts commit 3a44ccd156e0edd2e89226f8ed63928e227900bb. This reverts commit d5cfc836bb5552e20507d3612d13ff66ff9e36a0.
llvm-svn: 336829
|
#
bcf55ab9 |
| 11-Jul-2018 |
Paul Semel <semelpaul@gmail.com> |
[llvm-objdump] Add -demangle (-C) option
Differential Revision: https://reviews.llvm.org/D49043
llvm-svn: 336816
|
#
0dc92f6a |
| 05-Jul-2018 |
Paul Semel <semelpaul@gmail.com> |
[llvm-objdump] Add --archive-headers (-a) option
llvm-svn: 336357
|
#
d2af4d6f |
| 04-Jul-2018 |
Paul Semel <semelpaul@gmail.com> |
[llvm-objdump] Add --file-headers (-f) option
llvm-svn: 336284
|
#
bc78b621 |
| 28-Jun-2018 |
Sterling Augustine <saugustine@google.com> |
Handle absolute symbols as branch targets in disassembly.
https://reviews.llvm.org/D48554
llvm-svn: 335903
|
#
8513cd4c |
| 27-Jun-2018 |
Fangrui Song <maskray@google.com> |
[llvm-objdump] Add -x --all-headers options
Reviewers: paulsemel, echristo
Subscribers: llvm-commits
Differential Revision: https://reviews.llvm.org/D48622
llvm-svn: 335785
|
Revision tags: llvmorg-6.0.1, llvmorg-6.0.1-rc3 |
|
#
cb0f043c |
| 07-Jun-2018 |
Paul Semel <semelpaul@gmail.com> |
[llvm-objdump] Add -R option
This option prints dynamic relocation entries of the given file
Differential Revision: https://reviews.llvm.org/D47493
llvm-svn: 334196
|
Revision tags: llvmorg-6.0.1-rc2 |
|
#
d72b9fd1 |
| 01-Jun-2018 |
Daniel Cederman <cederman@gaisler.com> |
Implemented sane default for llvm-objdump's relocation Value format
Summary: "Unknown" for platforms that were not manually added into the switch did not make sense at all. Now it prints Target + ad
Implemented sane default for llvm-objdump's relocation Value format
Summary: "Unknown" for platforms that were not manually added into the switch did not make sense at all. Now it prints Target + addend for all elf-machines that were not explicitly mentioned.
Addresses PR21059 and PR25124.
Original author: fedor.sergeev
Reviewers: jyknight, espindola, fedor.sergeev
Reviewed By: jyknight
Subscribers: eraman, dcederman, jfb, dschuff, aheejin, llvm-commits
Differential Revision: https://reviews.llvm.org/D36464
llvm-svn: 333726
show more ...
|
#
d9f28735 |
| 14-May-2018 |
Sid Manning <sidneym@codeaurora.org> |
Hexagon: Put relocations after instructions not packets.
Change relocation output so that relocation information follows individual instructions rather than clustering them at the end of packets.
T
Hexagon: Put relocations after instructions not packets.
Change relocation output so that relocation information follows individual instructions rather than clustering them at the end of packets.
This change required shifting block of code but the actual change is in HexagonPrettyPrinter's PrintInst.
Differential Revision: https://reviews.llvm.org/D46728
llvm-svn: 332283
show more ...
|
#
4dfcc4a7 |
| 01-May-2018 |
Adrian Prantl <aprantl@apple.com> |
Remove @brief commands from doxygen comments, too.
This is a follow-up to r331272.
We've been running doxygen with the autobrief option for a couple of years now. This makes the \brief markers into
Remove @brief commands from doxygen comments, too.
This is a follow-up to r331272.
We've been running doxygen with the autobrief option for a couple of years now. This makes the \brief markers into our comments redundant. Since they are a visual distraction and we don't want to encourage more \brief markers in new code either, this patch removes them all.
Patch produced by for i in $(git grep -l '\@brief'); do perl -pi -e 's/\@brief //g' $i & done
https://reviews.llvm.org/D46290
llvm-svn: 331275
show more ...
|
#
8c4b0ce2 |
| 26-Apr-2018 |
Sam Clegg <sbc@chromium.org> |
[WebAssembly] objdump: Don't assume all relocations have symbols
Subscribers: jfb, dschuff, jgravelle-google, aheejin, sunfish, llvm-commits
Differential Revision: https://reviews.llvm.org/D46134
[WebAssembly] objdump: Don't assume all relocations have symbols
Subscribers: jfb, dschuff, jgravelle-google, aheejin, sunfish, llvm-commits
Differential Revision: https://reviews.llvm.org/D46134
llvm-svn: 330959
show more ...
|
#
f676cdd5 |
| 26-Apr-2018 |
Sam Clegg <sbc@chromium.org> |
[WebAssembly] Implement getRelocationValueString()
And use it in llvm-objdump.
Differential Revision: https://reviews.llvm.org/D46092
llvm-svn: 330957
|
#
1834682b |
| 19-Apr-2018 |
Francis Visoiu Mistrih <francisvm@yahoo.com> |
[llvm-objdump] Print "..." instead of random data for virtual sections
When disassembling with -D, skip virtual sections by printing "..." for each symbol.
This patch also implements `MachOObjectFi
[llvm-objdump] Print "..." instead of random data for virtual sections
When disassembling with -D, skip virtual sections by printing "..." for each symbol.
This patch also implements `MachOObjectFile::isSectionVirtual`.
Test case comes from:
``` .zerofill __DATA,__common,_data64unsigned,472,3 ```
Differential Revision: https://reviews.llvm.org/D45824
llvm-svn: 330342
show more ...
|
Revision tags: llvmorg-6.0.1-rc1 |
|
#
197194b6 |
| 13-Apr-2018 |
Rui Ueyama <ruiu@google.com> |
Define InitLLVM to do common initialization all at once.
We have a few functions that virtually all command wants to run on process startup/shutdown. This patch adds InitLLVM class to do that all at
Define InitLLVM to do common initialization all at once.
We have a few functions that virtually all command wants to run on process startup/shutdown. This patch adds InitLLVM class to do that all at once, so that we don't need to copy-n-paste boilerplate code to each llvm command's main() function.
Differential Revision: https://reviews.llvm.org/D45602
llvm-svn: 330046
show more ...
|
#
8db564e0 |
| 01-Apr-2018 |
Mandeep Singh Grang <mgrang@codeaurora.org> |
[tools] Change std::sort to llvm::sort in response to r327219
Summary: r327219 added wrappers to std::sort which randomly shuffle the container before sorting. This will help in uncovering non-deter
[tools] Change std::sort to llvm::sort in response to r327219
Summary: r327219 added wrappers to std::sort which randomly shuffle the container before sorting. This will help in uncovering non-determinism caused due to undefined sorting order of objects having the same key.
To make use of that infrastructure we need to invoke llvm::sort instead of std::sort.
Note: This patch is one of a series of patches to replace *all* std::sort to llvm::sort. Refer the comments section in D44363 for a list of all the required patches.
Reviewers: JDevlieghere, zturner, echristo, dberris, friss
Reviewed By: echristo
Subscribers: gbedwell, llvm-commits
Differential Revision: https://reviews.llvm.org/D45141
llvm-svn: 328943
show more ...
|
Revision tags: llvmorg-5.0.2, llvmorg-5.0.2-rc2 |
|
#
7116e896 |
| 26-Mar-2018 |
Tim Corringham <tcorring@amd.com> |
[AMDGPU] Improve disassembler error handling
Summary: llvm-objdump now disassembles unrecognised opcodes as data, using the .long directive. We treat unrecognised opcodes as being 32 bit values, so
[AMDGPU] Improve disassembler error handling
Summary: llvm-objdump now disassembles unrecognised opcodes as data, using the .long directive. We treat unrecognised opcodes as being 32 bit values, so move along 4 bytes rather than the single byte which previously resulted in a cascade of bogus disassembly following an unrecognised opcode.
While no solution can always disassemble code that contains embedded data correctly this provides a significant improvement.
The disassembler will now cope with an arbitrary length section as it no longer truncates it to a multiple of 4 bytes, and will use the .byte directive for trailing bytes.
Subscribers: arsenm, kzhuravl, wdng, nhaehnle, yaxunl, dstuttard, tpr, t-tye, llvm-commits
Differential Revision: https://reviews.llvm.org/D44685
llvm-svn: 328553
show more ...
|
Revision tags: llvmorg-5.0.2-rc1 |
|
#
b0e4b916 |
| 09-Mar-2018 |
Rafael Auler <rafaelauler@fb.com> |
[llvm-objdump] Support disassembling by symbol name
Summary: Add a new option -df to llvm-objdump that takes function names as arguments and instructs the disassembler to only dump those function co
[llvm-objdump] Support disassembling by symbol name
Summary: Add a new option -df to llvm-objdump that takes function names as arguments and instructs the disassembler to only dump those function contents. Based on code originally written by Bill Nell.
Reviewers: espindola, JDevlieghere
Differential Revision: https://reviews.llvm.org/D44224
llvm-svn: 327164
show more ...
|