History log of /llvm-project/llvm/tools/llvm-objdump/llvm-objdump.cpp (Results 501 – 525 of 727)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 18d4b0da 15-Sep-2015 Daniel Sanders <daniel.sanders@imgtec.com>

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).

F

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.

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: 247683

show more ...


Revision tags: llvmorg-3.7.0, llvmorg-3.7.0-rc4, llvmorg-3.7.0-rc3, studio-1.4
# a01ff22b 10-Aug-2015 Rafael Espindola <rafael.espindola@gmail.com>

Use higher level functions in llvm-objdump.

This matches the rest of llvm-objdump better and isolates it from upcoming
changes to ELFFile.

llvm-svn: 244500


# 8bab889b 07-Aug-2015 Rafael Espindola <rafael.espindola@gmail.com>

Convert getSymbolSection to return an ErrorOr.

This function can actually fail since the symbol contains an index to the
section and that can be invalid.

llvm-svn: 244375


# 7f6c3010 06-Aug-2015 Davide Italiano <davide@freebsd.org>

[llvm-objdump] Add missing call to exit(1).

Reported by: Rafael Espindola.

llvm-svn: 244184


# ccd53fee 05-Aug-2015 Davide Italiano <davide@freebsd.org>

[llvm-objdump] Call exit(1) on error, i.e. fail early.

Previously we kept going on partly corrupted input, which might result
in garbage being printed, or even worse, random crashes.
Rafael mentione

[llvm-objdump] Call exit(1) on error, i.e. fail early.

Previously we kept going on partly corrupted input, which might result
in garbage being printed, or even worse, random crashes.
Rafael mentioned that this is the GNU behavior as well, but after some
discussion we both agreed it's probably better to emit a reasonable
error message and exit. As a side-effect of this commit, now we don't
rely on global state for error codes anymore. objdump was the last tool
in the toolchain which needed to be converted. Hopefully the old behavior
won't sneak into the tree again.

llvm-svn: 244019

show more ...


# 95dd3cb0 03-Aug-2015 Davide Italiano <davide@freebsd.org>

[llvm-objdump] Range-loopify. NFC intended.

llvm-svn: 243905


Revision tags: llvmorg-3.7.0-rc2
# da1723f1 29-Jul-2015 Colin LeMahieu <colinl@codeaurora.org>

[llvm-objdump] Inverting logic to match the word "predicate". Returning true when we want it rather than when we want to discard it.

llvm-svn: 243558


# fcc32766 29-Jul-2015 Colin LeMahieu <colinl@codeaurora.org>

[llvm-objdump] Merging MachO DumpSections in to FilterSections. Simplifying some predicate logic.

llvm-svn: 243556


# 77804bed 29-Jul-2015 Colin LeMahieu <colinl@codeaurora.org>

[llvm-objdump] Added -j flag to filter sections that are operated on.

llvm-svn: 243526


# f34933e4 23-Jul-2015 Colin LeMahieu <colinl@codeaurora.org>

[llvm-objdump] Add -D and --disassemble-all flags that attempt disassembly on all sections instead of just text sections.

llvm-svn: 243041


Revision tags: llvmorg-3.7.0-rc1
# 0f70ee90 10-Jul-2015 Daniel Jasper <djasper@google.com>

Add missing 'const'. I don't think this is strictly required, but some
compiler configuration is giving me an error and it seems to be
recommended anyway.

llvm-svn: 241892


# 2603a8fa 09-Jul-2015 David Majnemer <david.majnemer@gmail.com>

[llvm-objdump] Require that jump targets shown in -d are functions

Don't let the disassembler pick call <.text> if a function happens to
live at the start of the section by only using function symbo

[llvm-objdump] Require that jump targets shown in -d are functions

Don't let the disassembler pick call <.text> if a function happens to
live at the start of the section by only using function symbols.

llvm-svn: 241830

show more ...


# 437105a4 08-Jul-2015 Adrian Prantl <aprantl@apple.com>

llvm-objdump: Replace the -macho -raw option with a generic -raw-clang-ast
option that works with all object container formats.
Now that clang modules/PCH are object containers this option is useful

llvm-objdump: Replace the -macho -raw option with a generic -raw-clang-ast
option that works with all object container formats.
Now that clang modules/PCH are object containers this option is useful to
to construct pipes like

llvm-objdump -raw-clang-ast foo.pcm | llvm-bcanalyzer -

to inspect the AST contents in a PCH container.
Will be tested via clang.

Belatedly addresses review feedback for r233390.

llvm-svn: 241659

show more ...


# 81afca6b 07-Jul-2015 David Majnemer <david.majnemer@gmail.com>

[llvm-objdump] Print the call target next to the instruction

GNU binutils provides this behavior. objdump -r doesn't really help
when you aren't dealing with relocation object files.

llvm-svn: 241

[llvm-objdump] Print the call target next to the instruction

GNU binutils provides this behavior. objdump -r doesn't really help
when you aren't dealing with relocation object files.

llvm-svn: 241631

show more ...


# be8b0ea8 07-Jul-2015 Rafael Espindola <rafael.espindola@gmail.com>

Delete UnknownAddress. It is a perfectly valid symbol value.

getSymbolValue now returns a value that in convenient for most callers:
* 0 for undefined
* symbol size for common symbols
* offset/addre

Delete UnknownAddress. It is a perfectly valid symbol value.

getSymbolValue now returns a value that in convenient for most callers:
* 0 for undefined
* symbol size for common symbols
* offset/address for symbols the rest

Code that needs something more specific can check getSymbolFlags.

llvm-svn: 241605

show more ...


# 704cd841 06-Jul-2015 Rafael Espindola <rafael.espindola@gmail.com>

Simplify. NFC.

llvm-svn: 241456


# ed067c45 03-Jul-2015 Rafael Espindola <rafael.espindola@gmail.com>

Return ErrorOr from getSymbolAddress.

It can fail trying to get the section on ELF and COFF. This makes sure the
error is handled.

llvm-svn: 241366


# 5d0c2ffa 02-Jul-2015 Rafael Espindola <rafael.espindola@gmail.com>

Return ErrorOr from SymbolRef::getName.

This function can really fail since the string table offset can be out of
bounds.

Using ErrorOr makes sure the error is checked.

Hopefully a lot of the boil

Return ErrorOr from SymbolRef::getName.

This function can really fail since the string table offset can be out of
bounds.

Using ErrorOr makes sure the error is checked.

Hopefully a lot of the boilerplate code in tools/* can go away once we have
a diagnostic manager in Object.

llvm-svn: 241297

show more ...


# 7f162ec2 02-Jul-2015 Rafael Espindola <rafael.espindola@gmail.com>

Expose getRel and getRela to reduce code duplication.

llvm-svn: 241266


# 6def3042 01-Jul-2015 Rafael Espindola <rafael.espindola@gmail.com>

Return ErrorOr from getSection.

This also improves the logic of what is an error:

* getSection(uint_32): only return an error if the index is out of bounds. The
index 0 corresponds to a perfectly

Return ErrorOr from getSection.

This also improves the logic of what is an error:

* getSection(uint_32): only return an error if the index is out of bounds. The
index 0 corresponds to a perfectly valid entry.
* getSection(Elf_Sym): Returns null for symbols that normally don't have
sections and error for out of bound indexes.

In many places this just moves the report_fatal_error up the stack, but those
can then be fixed in smaller patches.

llvm-svn: 241156

show more ...


# 41bb4325 30-Jun-2015 Rafael Espindola <rafael.espindola@gmail.com>

Don't return error_code from a function that doesn't fail.

llvm-svn: 241042


# 0ad71d98 30-Jun-2015 Rafael Espindola <rafael.espindola@gmail.com>

Move function to the only file that uses it.

llvm-svn: 241040


# f69ac42a 30-Jun-2015 Rafael Espindola <rafael.espindola@gmail.com>

Don't return error_code from a function that doesn't fail.

llvm-svn: 241039


# 96d071cd 29-Jun-2015 Rafael Espindola <rafael.espindola@gmail.com>

Don't return error_code from function that never fails.

llvm-svn: 241021


# 44c2871c 29-Jun-2015 Rafael Espindola <rafael.espindola@gmail.com>

Convert obj->getSymbolName to sym->getName.

I doesn't depend on the object anymore.

llvm-svn: 240996


1...<<21222324252627282930