summaryrefslogtreecommitdiffstats
path: root/llvm/tools
Commit message (Collapse)AuthorAgeFilesLines
...
* build: Add initial cut at LLVMBuild.txt files.Daniel Dunbar2011-11-031-0/+22
| | | | llvm-svn: 143634
* llvm-config-2: Implement component dependency traversal, implement support ↵Daniel Dunbar2011-11-031-13/+90
| | | | | | | | for 'all', and fix a few other minor bugs. - Still doesn't use actual generated component table, but that is now just a matter of wiring into the build system. llvm-svn: 143617
* llvm-config: Start stubbing out a C++ version of llvm-config (as llvm-config-2,Daniel Dunbar2011-11-035-1/+283
| | | | | | | | | | | | | | | | for now). - Mostly complete except for the data that needs to come from the build system or the dependencies. - Has some small improvements from current llvm-config: o Uses TargetRegistry directly to get some information. o Designed to work correctly when used from a CMake build tree (relatively untested currently) (although pcc fixed this recently for old llvm-config). llvm-svn: 143616
* Remove some cruft from the BitcodeWriter, while still maintaining backwardChad Rosier2011-11-031-1/+2
| | | | | | compatibility in the BitcodeReader. llvm-svn: 143598
* Add back the top-level target for 'llvm-config' and the dependency edgeChandler Carruth2011-11-021-0/+7
| | | | | | | | | | | | to force it to build after all library targets so it has complete dependency information. This should fix broken 'make install' with CMake. This is a partial revert of r143540, but it doesn't revert the most important part of that change: removing the dependency edge from LLVM tools to the llvm-config script. llvm-svn: 143548
* build/Make: Get rid of llvm-config-perobj, which isn't used anymore.Daniel Dunbar2011-11-021-44/+0
| | | | llvm-svn: 143541
* build/CMake: Remove llvm-config.target used to serialize tool builds onDaniel Dunbar2011-11-021-11/+0
| | | | | | llvm-config build, there is no longer a point to this after Chandler's work. llvm-svn: 143540
* First part of support for generating dwarf for assembly source files with theKevin Enderby2011-11-011-0/+6
| | | | | | | | | | | | -g flag. In this part we generate the .file for the source being assembled and the .loc's for the assembled instructions. The next part will be to generate the dwarf Compile Unit DIE and a dwarf subprogram DIE for each non-temporary label. Once the next part is done test cases will be added. rdar://9275556 llvm-svn: 143509
* rename getHostTriple into getDefaultTargetTripleSebastian Pop2011-11-015-5/+5
| | | | llvm-svn: 143502
* A couple misc fixes so that bugpoint doesn't explode reducing code ↵Eli Friedman2011-11-011-1/+5
| | | | | | containing landingpads. llvm-svn: 143435
* Switch new .file directive emission off by default, change llc's flag for it toNick Lewycky2011-10-311-4/+4
| | | | | | -enable-dwarf-directory. llvm-svn: 143326
* uint64 formatted output: replaced %llx with PRIx64 macro.Stepan Dyatkovskiy2011-10-282-7/+7
| | | | llvm-svn: 143191
* Have llvm-config --cppflags print correct flags when in CMake build directoryPeter Collingbourne2011-10-283-1/+10
| | | | | | | | | | | | Previously, if invoked from a CMake build directory, 'llvm-config --cppflags' and friends would only print a -I flag for the build directory's header search path, because it would assume that it was already installed, not recognising its parent directory as being the build directory. Teach llvm-config about CMake build directories so that it prints a -I for both the source and build directory's search paths. llvm-svn: 143171
* Remove the Alpha backend.Dan Gohman2011-10-271-2/+1
| | | | llvm-svn: 143164
* Revert r143149, stubbing out symbolic disassembly support. The symbolic ↵Owen Anderson2011-10-271-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 Anderson2011-10-271-6/+45
| | | | llvm-svn: 143149
* Fixed llvm-objdump uint64_t formatted output.Stepan Dyatkovskiy2011-10-271-5/+5
| | | | llvm-svn: 143120
* Expand relocation type field to 64 bits. MachO scattered relocations ↵Owen Anderson2011-10-261-1/+1
| | | | | | require 33 bits of type info. llvm-svn: 143032
* llvm-nm: Use correct format string. Patch by Stepan Dyatkovskiy!Michael J. Spencer2011-10-251-2/+2
| | | | llvm-svn: 142984
* Add support for the notion of "hidden" relocations. On MachO, these are ↵Owen Anderson2011-10-251-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 Anderson2011-10-251-1/+1
| | | | llvm-svn: 142952
* 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
OpenPOWER on IntegriCloud