Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Add more PRI.64 macros for MSVC and use them throughout the codebase. | Benjamin Kramer | 2011-11-05 | 1 | -2/+2 | |
| | | | | llvm-svn: 143799 | |||||
* | uint64 formatted output: replaced %llx with PRIx64 macro. | Stepan Dyatkovskiy | 2011-10-28 | 1 | -5/+5 | |
| | | | | llvm-svn: 143191 | |||||
* | Revert r143149, stubbing out symbolic disassembly support. The symbolic ↵ | Owen Anderson | 2011-10-27 | 1 | -45/+6 | |
| | | | | | | disassembly support is too MC-engrained to be useful in llvm-objdump. llvm-svn: 143152 | |||||
* | Stub out support for symbol disassembly in llvm-objdump. | Owen Anderson | 2011-10-27 | 1 | -6/+45 | |
| | | | | llvm-svn: 143149 | |||||
* | Fixed llvm-objdump uint64_t formatted output. | Stepan Dyatkovskiy | 2011-10-27 | 1 | -5/+5 | |
| | | | | llvm-svn: 143120 | |||||
* | Expand relocation type field to 64 bits. MachO scattered relocations ↵ | Owen Anderson | 2011-10-26 | 1 | -1/+1 | |
| | | | | | | require 33 bits of type info. llvm-svn: 143032 | |||||
* | Add support for the notion of "hidden" relocations. On MachO, these are ↵ | Owen Anderson | 2011-10-25 | 1 | -0/+9 | |
| | | | | | | | | relocation entries that are used as additional information for other, real relocations, rather than being relocations themselves. I'm not familiar enough with ELF or COFF to know if they should have any relocations marked hidden. llvm-svn: 142961 | |||||
* | Fix off-by-one error when printing relocations inline with disassembly. | Owen Anderson | 2011-10-25 | 1 | -1/+1 | |
| | | | | llvm-svn: 142952 | |||||
* | llvm-objdump: Add static symbol table dumping. | Michael J. Spencer | 2011-10-18 | 1 | -1/+120 | |
| | | | | llvm-svn: 142404 | |||||
* | build: Tidy up a bunch of tool Makefiles, and simplify where possible using the | Daniel Dunbar | 2011-10-18 | 1 | -5/+4 | |
| | | | | | | new all-targets pseudo-component. llvm-svn: 142401 | |||||
* | Revert "llvm-objdump: Add static symbol table dumping." | Michael J. Spencer | 2011-10-18 | 1 | -118/+1 | |
| | | | | | | This reverts commit 0c30d4e4f5f9110c5a67bd0ca84444dc58697596. llvm-svn: 142320 | |||||
* | llvm-objdump: Add static symbol table dumping. | Michael J. Spencer | 2011-10-17 | 1 | -1/+118 | |
| | | | | llvm-svn: 142319 | |||||
* | Rewrite most of MachODump to work through the generic libObject interfaces ↵ | Owen Anderson | 2011-10-17 | 1 | -169/+183 | |
| | | | | | | rather than accessing the MachO internals directly. llvm-svn: 142263 | |||||
* | llvm-objdump: Add -s, which prints the contents of each section. | Michael J. Spencer | 2011-10-17 | 1 | -5/+52 | |
| | | | | llvm-svn: 142199 | |||||
* | llvm-object: Add inline relocation information to disassembly. | Michael J. Spencer | 2011-10-13 | 1 | -6/+48 | |
| | | | | llvm-svn: 141897 | |||||
* | llvm-objdump: Fix whitespace. | Michael J. Spencer | 2011-10-13 | 1 | -1/+1 | |
| | | | | llvm-svn: 141886 | |||||
* | llvm-objdump: Fix dumping of multiple symbols with the same address. | Michael J. Spencer | 2011-10-13 | 1 | -1/+12 | |
| | | | | | | | This happens in COFF because there is a symbol for the beginning of each section. llvm-svn: 141885 | |||||
* | llvm-objdump.cpp: Use PRIx64 as format specifier for int64_t. | NAKAMURA Takumi | 2011-10-11 | 1 | -1/+1 | |
| | | | | llvm-svn: 141664 | |||||
* | Add support for dumping section headers to llvm-objdump. This uses the same | Nick Lewycky | 2011-10-10 | 1 | -1/+39 | |
| | | | | | | | | flags as binutils objdump but the output is different, not just in format but also showing different sections. Compare its results against readelf, not objdump. llvm-svn: 141579 | |||||
* | llvm-objdump: Take ownership of MCInstrInfos. | Benjamin Kramer | 2011-10-10 | 2 | -8/+2 | |
| | | | | llvm-svn: 141535 | |||||
* | llvm-objdump: Add relocation and archive support. | Michael J. Spencer | 2011-10-08 | 2 | -29/+103 | |
| | | | | llvm-svn: 141451 | |||||
* | Fix spelling in comment. | Michael J. Spencer | 2011-10-07 | 1 | -3/+3 | |
| | | | | llvm-svn: 141386 | |||||
* | Change relocation API to be per section. This time without breaking GCC. | Michael J. Spencer | 2011-10-07 | 1 | -2/+2 | |
| | | | | llvm-svn: 141385 | |||||
* | Revert 141376 and 141377 due to breaking the build. | Bill Wendling | 2011-10-07 | 2 | -5/+5 | |
| | | | | | | | | | | | | | | | | --- Reverse-merging r141377 into '.': U tools/llvm-objdump/MachODump.cpp --- Reverse-merging r141376 into '.': U include/llvm/Object/COFF.h U include/llvm/Object/ObjectFile.h U include/llvm-c/Object.h U tools/llvm-objdump/llvm-objdump.cpp U lib/Object/MachOObjectFile.cpp U lib/Object/COFFObjectFile.cpp U lib/Object/Object.cpp U lib/Object/ELFObjectFile.cpp llvm-svn: 141379 | |||||
* | Fix spelling in comment. | Michael J. Spencer | 2011-10-07 | 1 | -3/+3 | |
| | | | | llvm-svn: 141377 | |||||
* | Change relocation API to be per section. | Michael J. Spencer | 2011-10-07 | 1 | -2/+2 | |
| | | | | llvm-svn: 141376 | |||||
* | llvm-objdump: Detach symbol listing from section enumeration for mach-o. | Benjamin Kramer | 2011-09-21 | 1 | -19/+16 | |
| | | | | | | This reduces memory usage as we don't add the same symbol multiple times anymore. llvm-svn: 140278 | |||||
* | llvm-objdump: Take the data from the right object when there's no dSYM around. | Benjamin Kramer | 2011-09-21 | 1 | -11/+13 | |
| | | | | llvm-svn: 140269 | |||||
* | llvm-objdump: Fix use after free. | Benjamin Kramer | 2011-09-21 | 1 | -1/+1 | |
| | | | | llvm-svn: 140237 | |||||
* | llvm-objdump: Output line info next to the disassembly if available. | Benjamin Kramer | 2011-09-21 | 3 | -53/+156 | |
| | | | | | | | | | | | | MachO-only at the moment, sorry. Usage: $ llvm-objdump -d -m -g -dsym=a.out.dSYM/Contents/Resources/DWARF/a.out a.out _main: 100000e90: 55 pushq %rbp ## test.c:11:3 … llvm-svn: 140224 | |||||
* | llvm-objdump: factor code better, add comments. | Benjamin Kramer | 2011-09-20 | 3 | -159/+183 | |
| | | | | llvm-svn: 140153 | |||||
* | Nope, there's another one! | Benjamin Kramer | 2011-09-19 | 1 | -1/+1 | |
| | | | | llvm-svn: 140045 | |||||
* | Missed one instance of implicit pointer conversion. | Benjamin Kramer | 2011-09-19 | 1 | -1/+1 | |
| | | | | llvm-svn: 140044 | |||||
* | Try to make MSVC 2010 happy. | Benjamin Kramer | 2011-09-19 | 1 | -2/+2 | |
| | | | | llvm-svn: 140042 | |||||
* | Add a MachO-specific "mode" to llvm-objdump, that, if enabled, gathers ↵ | Benjamin Kramer | 2011-09-19 | 6 | -205/+671 | |
| | | | | | | | | | additional information that are only available on MachO. - It can take FunctionStarts from a binary to find entry points more accurately. - Symbol offsets in executables are correct now. llvm-svn: 140028 | |||||
* | Don't attach annotations to MCInst's. Instead, have the disassembler ↵ | Owen Anderson | 2011-09-15 | 2 | -5/+6 | |
| | | | | | | return, and the printer accept, an annotation string which can be passed through if the client cares about annotations. llvm-svn: 139876 | |||||
* | Object: make the following changes into SymbolRef | Benjamin Kramer | 2011-09-14 | 1 | -1/+1 | |
| | | | | | | | | | | | - Add enum SymbolType and function getSymbolType() - Add function isGlobal() - it's returns true for symbols that can be used in another objects, such as library functions. - Rename function getAddress() to getOffset() and add new function getAddress(), because currently getAddress() returns section offset of symbol first byte. new getAddress() return symbol address. - Change usage SymbolRef::getAddress() to getOffset() in tools/llvm-nm and tools/llvm-objdump. Patch by Danil Malyshev! llvm-svn: 139683 | |||||
* | Refactor instprinter and mcdisassembler to take a SubtargetInfo. Add -mattr= ↵ | James Molloy | 2011-09-07 | 1 | -2/+10 | |
| | | | | | | handling to llvm-mc. Reviewed by Owen Anderson. llvm-svn: 139237 | |||||
* | Move TargetRegistry and TargetSelect from Target to Support where they belong. | Evan Cheng | 2011-08-24 | 1 | -2/+2 | |
| | | | | | | These are strictly utilities for registering targets and components. llvm-svn: 138450 | |||||
* | Some refactoring so TargetRegistry.h no longer has to include any files | Evan Cheng | 2011-08-23 | 1 | -0/+1 | |
| | | | | | | from MC. llvm-svn: 138367 | |||||
* | Add MCInstrAnalysis class. This allows the targets to specify own versions ↵ | Benjamin Kramer | 2011-08-08 | 3 | -31/+26 | |
| | | | | | | | | | of MCInstrDescs functions. - Add overrides for ARM. - Teach llvm-objdump to use this instead of plain MCInstrDesc. llvm-svn: 137059 | |||||
* | llvm-objdump: disassembly enhancements | Benjamin Kramer | 2011-08-08 | 1 | -1/+19 | |
| | | | | | | | - Indent simple loops - Print unreachable blocks as .byte directives llvm-svn: 137058 | |||||
* | llvm-objdump: Use help of CFG to print assembly when --cfg is passed. | Benjamin Kramer | 2011-08-08 | 1 | -15/+44 | |
| | | | | | | This way we can avoid printing unreachable code (data). llvm-svn: 137057 | |||||
* | I will save before I commit. | Benjamin Kramer | 2011-07-25 | 2 | -1/+3 | |
| | | | | | | | | I will save before I commit. I will save before I commit. I will save before I commit. llvm-svn: 136007 | |||||
* | llvm-objdump: Ignore unreachable blocks when printing the CFG. | Benjamin Kramer | 2011-07-25 | 2 | -2/+21 | |
| | | | | llvm-svn: 136000 | |||||
* | Separate MCInstPrinter registration from AsmPrinter registration. | Evan Cheng | 2011-07-25 | 1 | -5/+0 | |
| | | | | llvm-svn: 135974 | |||||
* | Fix last bits of MC layer issues. llvm-mc doesn't need to initialize ↵ | Evan Cheng | 2011-07-25 | 1 | -2/+0 | |
| | | | | | | TargetMachine's anymore. llvm-svn: 135963 | |||||
* | Combine all MC initialization routines into one. e.g. InitializeX86MCAsmInfo, | Evan Cheng | 2011-07-22 | 1 | -3/+1 | |
| | | | | | | InitializeX86MCInstrInfo, etc. are combined into InitializeX86TargetMC. llvm-svn: 135812 | |||||
* | llvm-objdump: Don't ignore errors from raw_fd_ostream. | Benjamin Kramer | 2011-07-22 | 1 | -0/+4 | |
| | | | | llvm-svn: 135787 | |||||
* | llvm-objdump: Skip branches that leave the current function. | Benjamin Kramer | 2011-07-22 | 1 | -1/+4 | |
| | | | | | | | In "normal" code these only happen when disassembling data, so we won't lose anything if we just drop them. llvm-svn: 135786 |