8b2dcad4b5 
								
							 
						 
						
							
							
								
								Enable streaming of bitcode  
							
							... 
							
							
							
							This CL delays reading of function bodies from initial parse until
materialization, allowing overlap of compilation with bitcode download.
llvm-svn: 149918 
							
						 
						
							2012-02-06 22:30:29 +00:00  
				
					
						
							
							
								 
						
							
								88cc16aeb5 
								
							 
						 
						
							
							
								
								Allow command-line overrides of the target triple with the Mach-O  
							
							... 
							
							
							
							disassembler, just like the generic disassembler.
llvm-svn: 149681 
							
						 
						
							2012-02-03 06:35:22 +00:00  
				
					
						
							
							
								 
						
							
								54478a514c 
								
							 
						 
						
							
							
								
								Do the same fix as r149667, but for the Mach-O disassembler.  
							
							... 
							
							
							
							llvm-svn: 149674 
							
						 
						
							2012-02-03 05:42:17 +00:00  
				
					
						
							
							
								 
						
							
								07f0f77629 
								
							 
						 
						
							
							
								
								Fix llvm-objdump disassembly for interesting Mach-O binaries, e.g. any MacOS  
							
							... 
							
							
							
							dylib. This regressed with r145408. I will try to make a test case and add it
so that this doesn't happen again.
llvm-svn: 149667 
							
						 
						
							2012-02-03 04:13:37 +00:00  
				
					
						
							
							
								 
						
							
								a379b18173 
								
							 
						 
						
							
							
								
								Unweaken vtables as per  http://llvm.org/docs/CodingStandards.html#ll_virtual_anch  
							
							... 
							
							
							
							llvm-svn: 146960 
							
						 
						
							2011-12-20 02:50:00 +00:00  
				
					
						
							
							
								 
						
							
								27a7489a03 
								
							 
						 
						
							
							
								
								LLVMBuild: Remove trailing newline, which irked me.  
							
							... 
							
							
							
							llvm-svn: 146409 
							
						 
						
							2011-12-12 19:48:00 +00:00  
				
					
						
							
							
								 
						
							
								cbe72fc959 
								
							 
						 
						
							
							
								
								Fixed ObjectFile functions:  
							
							... 
							
							
							
							- getSymbolOffset() renamed as getSymbolFileOffset()
- getSymbolFileOffset(), getSymbolAddress(), getRelocationAddress() returns same result for ELFObjectFile, MachOObjectFile and COFFObjectFile.
- added getRelocationOffset()
- fixed MachOObjectFile::getSymbolSize()
- fixed MachOObjectFile::getSymbolSection()
- fixed MachOObjectFile::getSymbolOffset() for symbols without section data.
llvm-svn: 145408 
							
						 
						
							2011-11-29 17:40:10 +00:00  
				
					
						
							
							
								 
						
							
								37ab257b88 
								
							 
						 
						
							
							
								
								Revert r145180 as it is causing test failures on all the bots.  
							
							... 
							
							
							
							Original commit message:
Fixed ObjectFile functions:
- getSymbolOffset() renamed as getSymbolFileOffset()
- getSymbolFileOffset(), getSymbolAddress(), getRelocationAddress() returns same result for ELFObjectFile, MachOObjectFile and COFFObjectFile.
- added getRelocationOffset()
- fixed MachOObjectFile::getSymbolSize()
- fixed MachOObjectFile::getSymbolSection()
- fixed MachOObjectFile::getSymbolOffset() for symbols without section data.
llvm-svn: 145182 
							
						 
						
							2011-11-27 10:37:47 +00:00  
				
					
						
							
							
								 
						
							
								2631f93f7d 
								
							 
						 
						
							
							
								
								Fixed ObjectFile functions:  
							
							... 
							
							
							
							- getSymbolOffset() renamed as getSymbolFileOffset()
- getSymbolFileOffset(), getSymbolAddress(), getRelocationAddress() returns same result for ELFObjectFile, MachOObjectFile and COFFObjectFile.
- added getRelocationOffset()
- fixed MachOObjectFile::getSymbolSize()
- fixed MachOObjectFile::getSymbolSection()
- fixed MachOObjectFile::getSymbolOffset() for symbols without section data.
llvm-svn: 145180 
							
						 
						
							2011-11-27 10:12:52 +00:00  
				
					
						
							
							
								 
						
							
								53723de5b8 
								
							 
						 
						
							
							
								
								llvm-objdump: Ignore non-objects in archives.  
							
							... 
							
							
							
							llvm-svn: 144755 
							
						 
						
							2011-11-16 01:24:41 +00:00  
				
					
						
							
							
								 
						
							
								57fb3ae997 
								
							 
						 
						
							
							
								
								LLVMBuild: Add description files for the LLVM tools.  
							
							... 
							
							
							
							llvm-svn: 144417 
							
						 
						
							2011-11-11 22:59:39 +00:00  
				
					
						
							
							
								 
						
							
								7635bb7ae2 
								
							 
						 
						
							
							
								
								Fix llvm-objdump's MachO mode to not depend on the value returned by RelocationRef::getInfo().  
							
							... 
							
							
							
							llvm-svn: 143966 
							
						 
						
							2011-11-07 17:21:36 +00:00  
				
					
						
							
							
								 
						
							
								f3da529028 
								
							 
						 
						
							
							
								
								Add more PRI.64 macros for MSVC and use them throughout the codebase.  
							
							... 
							
							
							
							llvm-svn: 143799 
							
						 
						
							2011-11-05 08:57:40 +00:00  
				
					
						
							
							
								 
						
							
								07c0d4091f 
								
							 
						 
						
							
							
								
								uint64 formatted output: replaced %llx with PRIx64 macro.  
							
							... 
							
							
							
							llvm-svn: 143191 
							
						 
						
							2011-10-28 13:07:32 +00:00  
				
					
						
							
							
								 
						
							
								bf3bc1db22 
								
							 
						 
						
							
							
								
								Revert r143149, stubbing out symbolic disassembly support.  The symbolic disassembly support is too MC-engrained to be useful in llvm-objdump.  
							
							... 
							
							
							
							llvm-svn: 143152 
							
						 
						
							2011-10-27 21:55:13 +00:00  
				
					
						
							
							
								 
						
							
								8f167d4861 
								
							 
						 
						
							
							
								
								Stub out support for symbol disassembly in llvm-objdump.  
							
							... 
							
							
							
							llvm-svn: 143149 
							
						 
						
							2011-10-27 21:46:31 +00:00  
				
					
						
							
							
								 
						
							
								4b96dc7167 
								
							 
						 
						
							
							
								
								Fixed llvm-objdump uint64_t formatted output.  
							
							... 
							
							
							
							llvm-svn: 143120 
							
						 
						
							2011-10-27 18:40:45 +00:00  
				
					
						
							
							
								 
						
							
								7be76590e6 
								
							 
						 
						
							
							
								
								Expand relocation type field to 64 bits.  MachO scattered relocations require 33 bits of type info.  
							
							... 
							
							
							
							llvm-svn: 143032 
							
						 
						
							2011-10-26 17:08:49 +00:00  
				
					
						
							
							
								 
						
							
								fa3e5200b8 
								
							 
						 
						
							
							
								
								Add support for the notion of "hidden" relocations.  On MachO, these are 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 
							
						 
						
							2011-10-25 20:35:53 +00:00  
				
					
						
							
							
								 
						
							
								f20e3e5774 
								
							 
						 
						
							
							
								
								Fix off-by-one error when printing relocations inline with disassembly.  
							
							... 
							
							
							
							llvm-svn: 142952 
							
						 
						
							2011-10-25 20:15:39 +00:00  
				
					
						
							
							
								 
						
							
								bfa067862c 
								
							 
						 
						
							
							
								
								llvm-objdump: Add static symbol table dumping.  
							
							... 
							
							
							
							llvm-svn: 142404 
							
						 
						
							2011-10-18 19:32:17 +00:00  
				
					
						
							
							
								 
						
							
								96d812a68d 
								
							 
						 
						
							
							
								
								build: Tidy up a bunch of tool Makefiles, and simplify where possible using the  
							
							... 
							
							
							
							new all-targets pseudo-component.
llvm-svn: 142401 
							
						 
						
							2011-10-18 19:27:24 +00:00  
				
					
						
							
							
								 
						
							
								81c80ddb0c 
								
							 
						 
						
							
							
								
								Revert "llvm-objdump: Add static symbol table dumping."  
							
							... 
							
							
							
							This reverts commit 0c30d4e4f5f9110c5a67bd0ca84444dc58697596.
llvm-svn: 142320 
							
						 
						
							2011-10-18 00:17:04 +00:00  
				
					
						
							
							
								 
						
							
								6b22ef8af2 
								
							 
						 
						
							
							
								
								llvm-objdump: Add static symbol table dumping.  
							
							... 
							
							
							
							llvm-svn: 142319 
							
						 
						
							2011-10-17 23:55:22 +00:00  
				
					
						
							
							
								 
						
							
								d9243c4689 
								
							 
						 
						
							
							
								
								Rewrite most of MachODump to work through the generic libObject interfaces rather than accessing the MachO internals directly.  
							
							... 
							
							
							
							llvm-svn: 142263 
							
						 
						
							2011-10-17 21:37:35 +00:00  
				
					
						
							
							
								 
						
							
								4e25c02487 
								
							 
						 
						
							
							
								
								llvm-objdump: Add -s, which prints the contents of each section.  
							
							... 
							
							
							
							llvm-svn: 142199 
							
						 
						
							2011-10-17 17:13:22 +00:00  
				
					
						
							
							
								 
						
							
								51862b3890 
								
							 
						 
						
							
							
								
								llvm-object: Add inline relocation information to disassembly.  
							
							... 
							
							
							
							llvm-svn: 141897 
							
						 
						
							2011-10-13 22:17:18 +00:00  
				
					
						
							
							
								 
						
							
								8f67d47d0d 
								
							 
						 
						
							
							
								
								llvm-objdump: Fix whitespace.  
							
							... 
							
							
							
							llvm-svn: 141886 
							
						 
						
							2011-10-13 20:37:20 +00:00  
				
					
						
							
							
								 
						
							
								ee84f64f0b 
								
							 
						 
						
							
							
								
								llvm-objdump: Fix dumping of multiple symbols with the same address.  
							
							... 
							
							
							
							This happens in COFF because there is a symbol for the beginning of each
section.
llvm-svn: 141885 
							
						 
						
							2011-10-13 20:37:08 +00:00  
				
					
						
							
							
								 
						
							
								bd926cbdb5 
								
							 
						 
						
							
							
								
								llvm-objdump.cpp: Use PRIx64 as format specifier for int64_t.  
							
							... 
							
							
							
							llvm-svn: 141664 
							
						 
						
							2011-10-11 12:51:50 +00:00  
				
					
						
							
							
								 
						
							
								fcf8462583 
								
							 
						 
						
							
							
								
								Add support for dumping section headers to llvm-objdump. This uses the same  
							
							... 
							
							
							
							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 
							
						 
						
							2011-10-10 21:21:34 +00:00  
				
					
						
							
							
								 
						
							
								357d7dcbf4 
								
							 
						 
						
							
							
								
								llvm-objdump: Take ownership of MCInstrInfos.  
							
							... 
							
							
							
							llvm-svn: 141535 
							
						 
						
							2011-10-10 13:10:09 +00:00  
				
					
						
							
							
								 
						
							
								ba4a362276 
								
							 
						 
						
							
							
								
								llvm-objdump: Add relocation and archive support.  
							
							... 
							
							
							
							llvm-svn: 141451 
							
						 
						
							2011-10-08 00:18:30 +00:00  
				
					
						
							
							
								 
						
							
								c1363cf21a 
								
							 
						 
						
							
							
								
								Fix spelling in comment.  
							
							... 
							
							
							
							llvm-svn: 141386 
							
						 
						
							2011-10-07 19:25:47 +00:00  
				
					
						
							
							
								 
						
							
								e5fd004719 
								
							 
						 
						
							
							
								
								Change relocation API to be per section. This time without breaking GCC.  
							
							... 
							
							
							
							llvm-svn: 141385 
							
						 
						
							2011-10-07 19:25:32 +00:00  
				
					
						
							
							
								 
						
							
								206d8a7f48 
								
							 
						 
						
							
							
								
								Revert 141376 and 141377 due to breaking the build.  
							
							... 
							
							
							
							--- 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 
							
						 
						
							2011-10-07 18:25:37 +00:00  
				
					
						
							
							
								 
						
							
								350c71b2d8 
								
							 
						 
						
							
							
								
								Fix spelling in comment.  
							
							... 
							
							
							
							llvm-svn: 141377 
							
						 
						
							2011-10-07 18:15:40 +00:00  
				
					
						
							
							
								 
						
							
								b0d61540cb 
								
							 
						 
						
							
							
								
								Change relocation API to be per section.  
							
							... 
							
							
							
							llvm-svn: 141376 
							
						 
						
							2011-10-07 18:15:25 +00:00  
				
					
						
							
							
								 
						
							
								8a529dc10a 
								
							 
						 
						
							
							
								
								llvm-objdump: Detach symbol listing from section enumeration for mach-o.  
							
							... 
							
							
							
							This reduces memory usage as we don't add the same symbol multiple times anymore.
llvm-svn: 140278 
							
						 
						
							2011-09-21 22:16:43 +00:00  
				
					
						
							
							
								 
						
							
								37a7151b1f 
								
							 
						 
						
							
							
								
								llvm-objdump: Take the data from the right object when there's no dSYM around.  
							
							... 
							
							
							
							llvm-svn: 140269 
							
						 
						
							2011-09-21 18:18:53 +00:00  
				
					
						
							
							
								 
						
							
								9eaefa9786 
								
							 
						 
						
							
							
								
								llvm-objdump: Fix use after free.  
							
							... 
							
							
							
							llvm-svn: 140237 
							
						 
						
							2011-09-21 04:01:19 +00:00  
				
					
						
							
							
								 
						
							
								699128e58a 
								
							 
						 
						
							
							
								
								llvm-objdump: Output line info next to the disassembly if available.  
							
							... 
							
							
							
							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 
							
						 
						
							2011-09-21 01:13:19 +00:00  
				
					
						
							
							
								 
						
							
								2ad2eb527b 
								
							 
						 
						
							
							
								
								llvm-objdump: factor code better, add comments.  
							
							... 
							
							
							
							llvm-svn: 140153 
							
						 
						
							2011-09-20 17:53:01 +00:00  
				
					
						
							
							
								 
						
							
								444f079d34 
								
							 
						 
						
							
							
								
								Nope, there's another one!  
							
							... 
							
							
							
							llvm-svn: 140045 
							
						 
						
							2011-09-19 20:23:01 +00:00  
				
					
						
							
							
								 
						
							
								babc5291f4 
								
							 
						 
						
							
							
								
								Missed one instance of implicit pointer conversion.  
							
							... 
							
							
							
							llvm-svn: 140044 
							
						 
						
							2011-09-19 20:14:46 +00:00  
				
					
						
							
							
								 
						
							
								78ee973788 
								
							 
						 
						
							
							
								
								Try to make MSVC 2010 happy.  
							
							... 
							
							
							
							llvm-svn: 140042 
							
						 
						
							2011-09-19 20:08:52 +00:00  
				
					
						
							
							
								 
						
							
								43a772eda1 
								
							 
						 
						
							
							
								
								Add a MachO-specific "mode" to llvm-objdump, that, if enabled, gathers 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 
							
						 
						
							2011-09-19 17:56:04 +00:00  
				
					
						
							
							
								 
						
							
								a0c3b97221 
								
							 
						 
						
							
							
								
								Don't attach annotations to MCInst's.  Instead, have the disassembler return, and the printer accept, an annotation string which can be passed through if the client cares about annotations.  
							
							... 
							
							
							
							llvm-svn: 139876 
							
						 
						
							2011-09-15 23:38:46 +00:00  
				
					
						
							
							
								 
						
							
								75d1cf3391 
								
							 
						 
						
							
							
								
								Object: make the following changes into SymbolRef  
							
							... 
							
							
							
							- 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 
							
						 
						
							2011-09-14 01:22:52 +00:00  
				
					
						
							
							
								 
						
							
								4c493e8050 
								
							 
						 
						
							
							
								
								Refactor instprinter and mcdisassembler to take a SubtargetInfo. Add -mattr= handling to llvm-mc. Reviewed by Owen Anderson.  
							
							... 
							
							
							
							llvm-svn: 139237 
							
						 
						
							2011-09-07 17:24:38 +00:00