summaryrefslogtreecommitdiffstats
path: root/llvm/tools
Commit message (Collapse)AuthorAgeFilesLines
* llvm-objdump: Add static symbol table dumping.Michael J. Spencer2011-10-181-1/+120
| | | | llvm-svn: 142404
* build: Tidy up a bunch of tool Makefiles, and simplify where possible using theDaniel Dunbar2011-10-1828-144/+106
| | | | | | new all-targets pseudo-component. llvm-svn: 142401
* llvm-ar: Remove local test target, this is no longer useful.Daniel Dunbar2011-10-181-7/+0
| | | | llvm-svn: 142400
* llvm-config: Add an all-targets pseudo-component.Daniel Dunbar2011-10-181-2/+6
| | | | llvm-svn: 142399
* Revert "llvm-objdump: Add static symbol table dumping."Michael J. Spencer2011-10-181-118/+1
| | | | | | This reverts commit 0c30d4e4f5f9110c5a67bd0ca84444dc58697596. llvm-svn: 142320
* llvm-objdump: Add static symbol table dumping.Michael J. Spencer2011-10-171-1/+118
| | | | llvm-svn: 142319
* Add support for a new extension to the .file directive:Nick Lewycky2011-10-172-3/+10
| | | | | | | | | | .file filenumber "directory" "filename" This removes one join+split of the directory+filename in MC internals. Because bitcode files have independent fields for directory and filenames in debug info, this patch may change the .o files written by existing .bc files. llvm-svn: 142300
* Rewrite most of MachODump to work through the generic libObject interfaces ↵Owen Anderson2011-10-171-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. Spencer2011-10-171-5/+52
| | | | llvm-svn: 142199
* tools/CMakeLists.txt: Fixup r142103. I don't remember why I had missed the line.NAKAMURA Takumi2011-10-161-1/+1
| | | | llvm-svn: 142136
* Make SMDiagnostic a little more sane. Instead of passing around ↵Chris Lattner2011-10-162-5/+8
| | | | | | | | note/warning/error as a string, pass it around as an enum. llvm-svn: 142107
* Enhance llvm::SourceMgr to support diagnostic ranges, the same way clang ↵Chris Lattner2011-10-168-8/+8
| | | | | | | | | | | | | | | does. Enhance the X86 asmparser to produce ranges in the one case that was annoying me, for example: test.s:10:15: error: invalid operand for instruction movl 0(%rax), 0(%edx) ^~~~~~~ It should be straight-forward to enhance filecheck, tblgen, and/or the .ll parser to use ranges where appropriate if someone is interested. llvm-svn: 142106
* CMake: Introduce LLVM_CLANG_SOURCE_DIR, "tools/clang" by default. Clang will ↵NAKAMURA Takumi2011-10-161-2/+5
| | | | | | not be built if LLVM_CLANG_SOURCE_DIR="" or ${LLVM_CLANG_SOURCE_DIR}/CMakeLists.txt is not found. llvm-svn: 142103
* autoconf: Introduce --with-clang-srcdir, to build out-of-tree clang as ↵NAKAMURA Takumi2011-10-161-4/+8
| | | | | | tools/clang on tools/Makefile. llvm-svn: 142102
* llvm-object: Add inline relocation information to disassembly.Michael J. Spencer2011-10-131-6/+48
| | | | llvm-svn: 141897
* llvm-objdump: Fix whitespace.Michael J. Spencer2011-10-131-1/+1
| | | | llvm-svn: 141886
* llvm-objdump: Fix dumping of multiple symbols with the same address.Michael J. Spencer2011-10-131-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 Takumi2011-10-111-1/+1
| | | | llvm-svn: 141664
* Make it possible to use the linker without destroying the source module. ↵Tanya Lattner2011-10-113-5/+9
| | | | | | | | | | | | | | This is so the source module can be linked to multiple other destination modules. For all that used LinkModules() before, they will continue to destroy the source module as before. This line, and those below, will be ignored-- M include/llvm/Linker.h M tools/bugpoint/Miscompilation.cpp M tools/bugpoint/BugDriver.cpp M tools/llvm-link/llvm-link.cpp M lib/Linker/LinkModules.cpp llvm-svn: 141606
* Add support for dumping section headers to llvm-objdump. This uses the sameNick Lewycky2011-10-101-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 Kramer2011-10-102-8/+2
| | | | llvm-svn: 141535
* llvm-nm: Don't leak bitcode buffers.Benjamin Kramer2011-10-101-2/+2
| | | | llvm-svn: 141534
* llvm-objdump: Add relocation and archive support.Michael J. Spencer2011-10-082-29/+103
| | | | llvm-svn: 141451
* Fix a few changes I missed.Michael J. Spencer2011-10-072-12/+12
| | | | llvm-svn: 141392
* Fix GCC again.Michael J. Spencer2011-10-071-3/+3
| | | | llvm-svn: 141389
* Fix spelling in comment.Michael J. Spencer2011-10-071-3/+3
| | | | llvm-svn: 141386
* Change relocation API to be per section. This time without breaking GCC.Michael J. Spencer2011-10-071-2/+2
| | | | llvm-svn: 141385
* Revert 141376 and 141377 due to breaking the build.Bill Wendling2011-10-072-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. Spencer2011-10-071-3/+3
| | | | llvm-svn: 141377
* Change relocation API to be per section.Michael J. Spencer2011-10-071-2/+2
| | | | llvm-svn: 141376
* Update cmake list.Devang Patel2011-10-041-1/+0
| | | | llvm-svn: 141104
* Put GCOVFile and other related interface in a common header so that llvm-cov ↵Devang Patel2011-10-043-506/+1
| | | | | | tool can share it with GCOV writer. llvm-svn: 141095
* Exclude libLLVMTableGen.a from the shared libraryPeter Collingbourne2011-10-041-2/+3
| | | | | | Unbreaks tools for --enable-shared build. llvm-svn: 141052
* Simplify.Devang Patel2011-09-291-11/+17
| | | | llvm-svn: 140789
* Clarify comments.Devang Patel2011-09-292-4/+3
| | | | llvm-svn: 140787
* Remove unnecessary and unused data member.Devang Patel2011-09-292-3/+2
| | | | llvm-svn: 140786
* Cosmetic changes, as per Nick's review.Devang Patel2011-09-294-21/+16
| | | | llvm-svn: 140785
* Fix build failures better.Andrew Trick2011-09-291-5/+3
| | | | llvm-svn: 140758
* Fix build failure.Daniel Dunbar2011-09-291-2/+4
| | | | llvm-svn: 140755
* llvm-size: Apply Chris's code review fixes.Michael J. Spencer2011-09-291-46/+59
| | | | | | | This doesn't use formated_raw_ostream because it doesn't support the functionality needed. llvm-svn: 140751
* Fix cast.Michael J. Spencer2011-09-281-1/+1
| | | | llvm-svn: 140726
* Add llvm-size.Michael J. Spencer2011-09-285-1/+323
| | | | llvm-svn: 140722
* Introduce llvm-cov.Devang Patel2011-09-286-1/+609
| | | | | | | | | | | | | | | | | | | | | | | | | | Add llvm-cov skeleton. It has initial support to read coverage info generated by GCOVProfiling.cpp. Today, you can do prompt> clang a.c -ftest-coverage -fprofile-arcs -o a prompt> ./a prompt> llvm-cov -gcno a.gcno -gcda a.gcda a.c : #include "a.h" : : int main() { : int i = 0; : if (i) { 1: int j = 0; 1: j = 1; 1: } else { : int k = 1; : k = 2; : } 1: return 0; : } : : llvm-svn: 140712
* Add binary archive support to llvm-nm.Michael J. Spencer2011-09-271-10/+27
| | | | llvm-svn: 140627
* llvm-objdump: Detach symbol listing from section enumeration for mach-o.Benjamin Kramer2011-09-211-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 Kramer2011-09-211-11/+13
| | | | llvm-svn: 140269
* llvm-objdump: Fix use after free.Benjamin Kramer2011-09-211-1/+1
| | | | llvm-svn: 140237
* llvm-objdump: Output line info next to the disassembly if available.Benjamin Kramer2011-09-213-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 Kramer2011-09-203-159/+183
| | | | llvm-svn: 140153
* Remove llvmc from CMake as well.Eric Christopher2011-09-201-1/+0
| | | | llvm-svn: 140109
OpenPOWER on IntegriCloud