#
03a670c0 |
| 26-Jan-2016 |
Igor Laevsky <igmyrj@gmail.com> |
Re-submit r256008 "Improve DWARFDebugFrame::parse to also handle __eh_frame."
Originally this change was causing failures on windows buildbots. But those problems were fixed in r258806.
llvm-svn: 2
Re-submit r256008 "Improve DWARFDebugFrame::parse to also handle __eh_frame."
Originally this change was causing failures on windows buildbots. But those problems were fixed in r258806.
llvm-svn: 258811
show more ...
|
Revision tags: llvmorg-3.8.0-rc1 |
|
#
0ae163f9 |
| 13-Jan-2016 |
Kevin Enderby <enderby@apple.com> |
For llvm-objdump, add the option -private-header (without the trailing ’s’) to only print the first private header.
Which for Mach-O files only prints the Mach header and not the subsequent load com
For llvm-objdump, add the option -private-header (without the trailing ’s’) to only print the first private header.
Which for Mach-O files only prints the Mach header and not the subsequent load commands. Which is used by scripts to match what the darwin otool(1) with the -h flag does without the -l flag.
For non-Mach-O files it has the same functionality as -private-headers (with the trailing ’s’).
rdar://24158331
llvm-svn: 257548
show more ...
|
#
46350171 |
| 12-Jan-2016 |
Dan Gohman <dan433584@gmail.com> |
[WebAssembly] Add a EM_WEBASSEMBLY value, and several bits of code that use it.
A request has been made to the official registry, but an official value is not yet available. This patch uses a tempor
[WebAssembly] Add a EM_WEBASSEMBLY value, and several bits of code that use it.
A request has been made to the official registry, but an official value is not yet available. This patch uses a temporary value in order to support development. When an official value is recieved, the value of EM_WEBASSEMBLY will be updated.
llvm-svn: 257517
show more ...
|
#
ed9d95b2 |
| 29-Dec-2015 |
Davide Italiano <davide@freebsd.org> |
[llvm-objdump] Mark noreturn function as such.
Match attribute in the header to make MSVC happy.
llvm-svn: 256560
|
#
140af648 |
| 25-Dec-2015 |
Davide Italiano <davide@freebsd.org> |
[llvm-objdump] Use stderr and not stdout for fatal errors.
llvm-svn: 256423
|
#
e85abf72 |
| 20-Dec-2015 |
Davide Italiano <davide@freebsd.org> |
[llvm-objdump] Move COFF function to where it belongs.
Ideally much more stuff should be moved out of llvm-objdump.cpp, but that will happen later.
llvm-svn: 256118
|
#
540e9215 |
| 19-Dec-2015 |
Davide Italiano <davide@freebsd.org> |
[llvm-objdump] Fail early if we can't parse the object header.
llvm-svn: 256108
|
#
98052537 |
| 18-Dec-2015 |
Pete Cooper <peter_cooper@apple.com> |
Revert "Improve DWARFDebugFrame::parse to also handle __eh_frame."
This reverts commit r256008.
Its breaking multiple buildbots, although works for me locally.
llvm-svn: 256013
|
#
6c97f4c7 |
| 18-Dec-2015 |
Pete Cooper <peter_cooper@apple.com> |
Improve DWARFDebugFrame::parse to also handle __eh_frame.
LLVM MC has single methods which can handle the output of EH frame and DWARF CIE's and FDE's.
This code improves DWARFDebugFrame::parse to
Improve DWARFDebugFrame::parse to also handle __eh_frame.
LLVM MC has single methods which can handle the output of EH frame and DWARF CIE's and FDE's.
This code improves DWARFDebugFrame::parse to do the same for parsing.
This also allows llvm-objdump to support the --dwarf=frames option which objdump supports. This option dumps the .eh_frame section using the new code in DWARFDebugFrame::parse.
http://reviews.llvm.org/D15535
Reviewed by Rafael Espindola.
llvm-svn: 256008
show more ...
|
#
711e495e |
| 17-Dec-2015 |
Davide Italiano <davide@freebsd.org> |
[llvm-objdump] Use report_fatal_error() for a more uniform error handling.
llvm-svn: 255871
|
#
b13edeb9 |
| 08-Dec-2015 |
Davide Italiano <davide@freebsd.org> |
[llvm-objdump/MachO] Don't cut'n'paste the same code over and over.
Use the appropriate helper instead.
llvm-svn: 254990
|
#
bb599e3a |
| 03-Dec-2015 |
Davide Italiano <davide@freebsd.org> |
[llvm-objdump] Use report_fatal_error() if we can't find a target.
llvm-svn: 254654
|
Revision tags: llvmorg-3.7.1, llvmorg-3.7.1-rc2 |
|
#
153722d2 |
| 18-Nov-2015 |
David Majnemer <david.majnemer@gmail.com> |
Fix LLD testsuite fallout from r253429
llvm-svn: 253432
|
#
fbb1c3a7 |
| 18-Nov-2015 |
David Majnemer <david.majnemer@gmail.com> |
[llvm-objdump] Use the COFF export table for additional symbols
Most linked executables do not have a symbol table in COFF. However, it is pretty typical to have some export entries. Use those entr
[llvm-objdump] Use the COFF export table for additional symbols
Most linked executables do not have a symbol table in COFF. However, it is pretty typical to have some export entries. Use those entries to inform the disassembler about potential function definitions and call targets.
llvm-svn: 253429
show more ...
|
Revision tags: llvmorg-3.7.1-rc1 |
|
#
7a96942a |
| 05-Nov-2015 |
Kevin Enderby <enderby@apple.com> |
Reapply r250906 with many suggested updates from Rafael Espindola. The needed lld matching changes to be submitted immediately next, but this revision will cause lld failures with this alone which is
Reapply r250906 with many suggested updates from Rafael Espindola. The needed lld matching changes to be submitted immediately next, but this revision will cause lld failures with this alone which is expected.
This removes the eating of the error in Archive::Child::getSize() when the characters in the size field in the archive header for the member is not a number. To do this we have all of the needed methods return ErrorOr to push them up until we get out of lib. Then the tools and can handle the error in whatever way is appropriate for that tool.
So the solution is to plumb all the ErrorOr stuff through everything that touches archives. This include its iterators as one can create an Archive object but the first or any other Child object may fail to be created due to a bad size field in its header.
Thanks to Lang Hames on the changes making child_iterator contain an ErrorOr<Child> instead of a Child and the needed changes to ErrorOr.h to add operator overloading for * and -> .
We don’t want to use llvm_unreachable() as it calls abort() and is produces a “crash” and using report_fatal_error() to move the error checking will cause the program to stop, neither of which are really correct in library code. There are still some uses of these that should be cleaned up in this library code for other than the size field.
The test cases use archives with text files so one can see the non-digit character, in this case a ‘%’, in the size field.
These changes will require corresponding changes to the lld project. That will be committed immediately after this change. But this revision will cause lld failures with this alone which is expected.
llvm-svn: 252192
show more ...
|
#
a3b79dd7 |
| 04-Nov-2015 |
Michael Kuperstein <michael.m.kuperstein@intel.com> |
[ELF] elfiamcu triple should imply e_machine == EM_IAMCU
Differential Revision: http://reviews.llvm.org/D14109
llvm-svn: 252043
|
#
da9dd050 |
| 21-Oct-2015 |
Kevin Enderby <enderby@apple.com> |
Backing out commit r250906 as it broke lld.
llvm-svn: 250908
|
#
e3bf4fd5 |
| 21-Oct-2015 |
Kevin Enderby <enderby@apple.com> |
This removes the eating of the error in Archive::Child::getSize() when the characters in the size field in the archive header for the member is not a number. To do this we have all of the needed met
This removes the eating of the error in Archive::Child::getSize() when the characters in the size field in the archive header for the member is not a number. To do this we have all of the needed methods return ErrorOr to push them up until we get out of lib. Then the tools and can handle the error in whatever way is appropriate for that tool.
So the solution is to plumb all the ErrorOr stuff through everything that touches archives. This include its iterators as one can create an Archive object but the first or any other Child object may fail to be created due to a bad size field in its header.
Thanks to Lang Hames on the changes making child_iterator contain an ErrorOr<Child> instead of a Child and the needed changes to ErrorOr.h to add operator overloading for * and -> .
We don’t want to use llvm_unreachable() as it calls abort() and is produces a “crash” and using report_fatal_error() to move the error checking will cause the program to stop, neither of which are really correct in library code. There are still some uses of these that should be cleaned up in this library code for other than the size field.
Also corrected the code where the size gets us to the “at the end of the archive” which is OK but past the end of the archive will return object_error::parse_failed now.
The test cases use archives with text files so one can see the non-digit character, in this case a ‘%’, in the size field.
llvm-svn: 250906
show more ...
|
#
e11c9de8 |
| 07-Oct-2015 |
Pete Cooper <peter_cooper@apple.com> |
Stop linking all target libraries in llvm-nm and llvm-objdump.
llvm-nm only needs the target to parse module level assembly in bitcode. It doesn't need a disassembler or codegen.
llvm-objdump need
Stop linking all target libraries in llvm-nm and llvm-objdump.
llvm-nm only needs the target to parse module level assembly in bitcode. It doesn't need a disassembler or codegen.
llvm-objdump needs to be able to disassemble a file, but doesn't need asm parsers or codegen.
This reduces the sizes of these tools by a few MB each, depending on how many backends are linked in.
llvm-svn: 249632
show more ...
|
#
f070688e |
| 01-Oct-2015 |
Davide Italiano <davide@freebsd.org> |
[PATCH] D13360: [llvm-objdump] Teach -d about AArch64 mapping symbols
AArch64 uses $d* and $x* to interleave between text and data. llvm-objdump didn't know about this so it ended up printing garbag
[PATCH] D13360: [llvm-objdump] Teach -d about AArch64 mapping symbols
AArch64 uses $d* and $x* to interleave between text and data. llvm-objdump didn't know about this so it ended up printing garbage. This patch is a first step towards a solution of the problem.
Differential Revision: http://reviews.llvm.org/D13360
llvm-svn: 249083
show more ...
|
#
c50ae365 |
| 01-Oct-2015 |
Davide Italiano <davide@freebsd.org> |
[llvm-objdump] Fix time of check to time of use bug.
There's already a test that covers this situation, so we should be fine.
llvm-svn: 248976
|
#
ac9257b2 |
| 24-Sep-2015 |
Benjamin Kramer <benny.kra@googlemail.com> |
[objdump] Make iterator operator* return a reference.
This is closer to the expected behavior of an iterator and avoids awkward warnings from clang's -Wrange-loop-analysis below.
llvm-svn: 248497
|
#
50f17235 |
| 15-Sep-2015 |
Daniel Sanders <daniel.sanders@imgtec.com> |
Revert r247692: Replace Triple with a new TargetTuple in MCTargetDesc/* and related. NFC.
Eric has replied and has demanded the patch be reverted.
llvm-svn: 247702
|
#
153010c5 |
| 15-Sep-2015 |
Daniel Sanders <daniel.sanders@imgtec.com> |
Re-commit r247683: Replace Triple with a new TargetTuple in MCTargetDesc/* and related. NFC.
Summary: This is the first patch in the series to migrate Triple's (which are ambiguous) to TargetTuple's
Re-commit r247683: Replace Triple with a new TargetTuple in MCTargetDesc/* and related. NFC.
Summary: This is the first patch in the series to migrate Triple's (which are ambiguous) to TargetTuple's (which aren't).
For the moment, TargetTuple simply passes all requests to the Triple object it holds. Once it has replaced Triple, it will start to implement the interface in a more suitable way.
This change makes some changes to the public C++ API. In particular, InitMCSubtargetInfo(), createMCRelocationInfo(), and createMCSymbolizer() now take TargetTuples instead of Triples. The other public C++ API's have been left as-is for the moment to reduce patch size.
This commit also contains a trivial patch to clang to account for the C++ API change. Thanks go to Pavel Labath for fixing LLDB for me.
Reviewers: rengolin
Subscribers: jyknight, dschuff, arsenm, rampitec, danalbert, srhines, javed.absar, dsanders, echristo, emaste, jholewinski, tberghammer, ted, jfb, llvm-commits, rengolin
Differential Revision: http://reviews.llvm.org/D10969
llvm-svn: 247692
show more ...
|
#
c40de480 |
| 15-Sep-2015 |
Daniel Sanders <daniel.sanders@imgtec.com> |
Revert r247684 - Replace Triple with a new TargetTuple ...
LLDB needs to be updated in the same commit.
llvm-svn: 247686
|