summaryrefslogtreecommitdiffstats
path: root/llvm/tools
Commit message (Collapse)AuthorAgeFilesLines
* Manually update the dependencies in the Makefiles. It turns out that allChandler Carruth2013-03-269-9/+9
| | | | | | | | | | | that work on the LLVMBuild based dependency specification didn't actually work, we just now maintain dependencies in *3* places instead of 2. Yay. There may still be some missing dependencies, I'm still sifting through the bots and my builds, but this is a step in the right direction. llvm-svn: 177988
* Split out the IRReader header and the utility functions it provides intoChandler Carruth2013-03-2624-23/+29
| | | | | | | | | | | | | | | | | | | | | | | | its own library. These functions are bridging between the bitcode reader and the ll parser which are in different libraries. Previously we didn't have any good library to do this, and instead played fast and loose with a "header only" set of interfaces in the Support library. This really doesn't work well as evidenced by the recent attempt to add timing logic to the these routines. As part of this, make them normal functions rather than weird inline functions, and sink the implementation into the library. Also clean up the header to be nice and minimal. This requires updating lots of build system dependencies to specify that the IRReader library is needed, and several source files to not implicitly rely upon the header file to transitively include all manner of other headers. If you are using IRReader.h, this commit will break you (the header moved) and you'll need to also update your library usage to include 'irreader'. I will commit the corresponding change to Clang momentarily. llvm-svn: 177971
* [tools][llvm-readobj] print the name of the section when iterating the ↵Shankar Easwaran2013-03-251-12/+19
| | | | | | symbol table / dynamic symbol table llvm-svn: 177873
* Remove stale commentEli Bendersky2013-03-191-3/+0
| | | | llvm-svn: 177410
* Fix for r177390: map values are pointers, use DeleteContainerSeconds() ↵Alexey Samsonov2013-03-191-1/+2
| | | | | | instead of .clear() llvm-svn: 177409
* llvm-symbolizer: flush internal caches functionalityDmitry Vyukov2013-03-192-0/+5
| | | | llvm-svn: 177390
* Build LLVMgold.so on FreeBSD using cmake.Rafael Espindola2013-03-171-1/+2
| | | | | | Patch by Stephen Checkoway. llvm-svn: 177233
* Make LTO codegen use a PassManager, rather than a FunctionPassManager, for theLang Hames2013-03-131-13/+5
| | | | | | | | | | | | | codegen passes. This brings it in to line with clang and llc's codegen setup, and tidies up the code. If I understand correctly, adding ModulePasses to a FunctionPassManager is bogus. It only seems to explode if an added ModulePass depends on a FunctionPass though, which might be why this code has survived so long. Fixes <rdar://problem/13386816>. llvm-svn: 176977
* Connect LLVM CMake build scripts to LLDB's CMake scripts:Daniel Malea2013-02-281-0/+1
| | | | | | | | - if you have LLDB checked out in $llvm/tools, CMake will build it now! - LLDB is known to build on Linux with libstdc++ and GCC 4.6/4.7 or Clang 3.3 - to run lldb tests, do "make check-lldb" after a build llvm-svn: 176307
* Add the -disable-opt option to LTO. This adds:Bill Wendling2013-02-281-1/+7
| | | | | | | | | | | | | | - Consistency with opt (which supports the same option with the same meaning and description). - Debugging gold plugin-based linking without optimizations getting in the way. - Debugging programs linked with the gold plugin while preserving the original debug info. - Fine-grained control over LTO passes using the gold plugin in combination with opt (or clang/dragonegg). Patch by Cristiano Giuffrida! llvm-svn: 176257
* print TLS segmentShankar Easwaran2013-02-271-0/+3
| | | | llvm-svn: 176192
* Try to get rid of a -wunitialized warning: explicitly initialize the pointerEli Bendersky2013-02-261-1/+3
| | | | | | to NULL and use asserts to check in relevant places. llvm-svn: 176134
* Fix auto_ptr is deprecated warningsMatt Arsenault2013-02-261-11/+11
| | | | llvm-svn: 176123
* Provide workaround for PR 15130.Andrew Kaylor2013-02-252-12/+34
| | | | | | This changes the RecordingMemoryManager in lli to use mapped memory rather than malloc to allocate memory for sections and uses a 'near' MemoryBlock to keep the allocations together. This works around a problem in MCJIT where relocations are applied to a generated image immediately oupon generation, which isn't appropriate for the remote case. llvm-svn: 176057
* [objdump] Add PT_PHDR.Michael J. Spencer2013-02-211-0/+3
| | | | llvm-svn: 175709
* [objdump] Print the PT_INTERP and PT_DYNAMIC correcctly.Michael J. Spencer2013-02-201-0/+6
| | | | llvm-svn: 175659
* [llvm-readobj] Add ELF .dynamic table dumping.Michael J. Spencer2013-02-204-0/+228
| | | | llvm-svn: 175592
* clang-formatize llvm-symbolizer codeAlexey Samsonov2013-02-153-78/+69
| | | | llvm-svn: 175255
* llvm-symbolizer: speedup symbol lookupDmitry Vyukov2013-02-142-43/+73
| | | | llvm-svn: 175158
* Use 'RC_XBS' instead of 'RC_BUILDIT' to catch all times when it's built in ↵Bill Wendling2013-02-131-1/+1
| | | | | | the Apple way. llvm-svn: 175069
* Add static cast to unsigned char whenever a character classification ↵Guy Benyei2013-02-122-2/+2
| | | | | | function is called with a signed char argument, in order to avoid assertions in Windows Debug configuration. llvm-svn: 175006
* Add support for the pubnames section to llvm-dwarfdump.Krzysztof Parzyszek2013-02-121-0/+1
| | | | llvm-svn: 174976
* Update with attribute group IDs.Bill Wendling2013-02-101-11/+14
| | | | llvm-svn: 174847
* [readobj] Fix memory leak.Michael J. Spencer2013-02-081-1/+2
| | | | llvm-svn: 174687
* Initial support for DWARF CFI parsing and dumping in LLVMEli Bendersky2013-02-051-0/+1
| | | | llvm-svn: 174463
* [objdump,readobj] Document the purpose and goals of each tool.Michael J. Spencer2013-02-052-4/+10
| | | | llvm-svn: 174439
* Print error messages from MemoryBuffer::getFile() in llvm-symbolizerAlexey Samsonov2013-02-051-1/+2
| | | | llvm-svn: 174346
* Replace global std::string with const char[]Alexey Samsonov2013-02-042-2/+2
| | | | llvm-svn: 174332
* [Object][Archive] Improve performance.Michael J. Spencer2013-02-031-1/+3
| | | | | | | | | | | | Improve performance of iterating over children and accessing the member file buffer by caching the file size and moving code out to the header. This also makes getBuffer return a StringRef instead of a MemoryBuffer. Both fixing a memory leak and removing a malloc. This takes getBuffer from ~10% of the time in lld to unmeasurable. llvm-svn: 174272
* Fix a copy/paste-o that got missed because 'check' doesn't build lto.Chandler Carruth2013-01-311-1/+1
| | | | llvm-svn: 174115
* Give the MCStreamer class hierarchy LLVM RTTI facilities for use withChandler Carruth2013-01-311-1/+6
| | | | | | | | | | | | | | | | isa<> and dyn_cast<>. In several places, code is already hacking around the absence of this, and there seem to be several interfaces that might be lifted and/or devirtualized using this. This change was based on a discussion with Jim Grosbach about how best to handle testing for specific MCStreamer subclasses. He said that this was the correct end state, and everything else was too hacky so I decided to just make it so. No functionality should be changed here, this is just threading the kind through all the constructors and setting up the classof overloads. llvm-svn: 174113
* Add support for source and line information to IntelJITEventListener for ↵Andrew Kaylor2013-01-284-2/+5
| | | | | | object emitted by MCJIT. llvm-svn: 173712
* Extracted ObjCARC.cpp into its own library libLLVMObjCARCOpts in preparation ↵Michael Gottesman2013-01-288-6/+8
| | | | | | for refactoring the ARC Optimizer. llvm-svn: 173647
* Add DIContext::getLineInfoForAddressRange() function and test. This ↵Andrew Kaylor2013-01-261-2/+8
| | | | | | function allows a caller to obtain a table of line information for a function using the function's address and size. llvm-svn: 173537
* Add support for applying in-memory relocations to the .debug_line section ↵Andrew Kaylor2013-01-253-3/+63
| | | | | | and, in the case of ELF files, using symbol addresses when available for relocations to the .debug_info section. Also extending the llvm-rtdyld tool to add the ability to dump line number information for testing purposes. llvm-svn: 173517
* When encountering an unknown file format, ObjectFile::createObjectFile shouldEli Bendersky2013-01-251-0/+5
| | | | | | | | | politely report it instead of running into llvm_unreachable. Also patch llvm-dwarfdump to actually check whether the file it's attempting to dump is a valid object file. llvm-svn: 173489
* Add command-line flags for DWARF dumping.Eli Bendersky2013-01-251-1/+18
| | | | | | | Flags for dumping specific DWARF sections added in lib/DebugInfo and llvm-dwarfdump. llvm-svn: 173480
* Rename variable to be more comprehensible and follow naming conventionEli Bendersky2013-01-251-4/+4
| | | | llvm-svn: 173460
* [bugpoint] make tool selection messages uniqueSaleem Abdulrasool2013-01-241-1/+1
| | | | | | | | | Change messages to help identify which interpreter was actually selected (safe vs testing). Signed-off-by: Saleem Abdulrasool <compnerd@compnerd.org> Reviewed-by: Chandler Carruth <chandlerc@gmail.com> llvm-svn: 173360
* [bugpoint] set Message after tool configurationSaleem Abdulrasool2013-01-241-1/+1
| | | | | | | | | | Set the message returned after the GCC runner has been constructed as otherwise the message will be overwritten by the construction of the runner, resulting in misleading messages. Signed-off-by: Saleem Abdulrasool <compnerd@compnerd.org> Reviewed-by: Chandler Carruth <chandlerc@gmail.com> llvm-svn: 173359
* lli/RecordingMemoryManager: Free allocated sections in the destructor to ↵NAKAMURA Takumi2013-01-242-1/+12
| | | | | | | satisfy --vg-leak! FIXME: It could be generalized in MemoryManager. llvm-svn: 173349
* llvm-symbolizer: factor out bits of the tool into separate ↵Alexey Samsonov2013-01-224-288/+381
| | | | | | LLVMSymbolize.{h,cpp} files. No functionality change. llvm-svn: 173159
* Fix missed out llvm-stress after APFloat change.Tim Northover2013-01-221-3/+1
| | | | llvm-svn: 173141
* [CMake] bugpoint-passes should not be built in "all", when LLVM_BUILD_TOOLS ↵NAKAMURA Takumi2013-01-221-0/+4
| | | | | | is OFF. llvm-svn: 173112
* Remove unneeded #include.Jakub Staszak2013-01-211-1/+0
| | | | llvm-svn: 173088
* switch llvm-bcanalyzer onto the new cursor APIs, allowing deletion ofChris Lattner2013-01-201-69/+73
| | | | | | the old ReadRecord methods. llvm-svn: 172952
* fix method name.Chris Lattner2013-01-191-1/+1
| | | | llvm-svn: 172921
* Sort all of the includes. Several files got checked in with mis-sortedChandler Carruth2013-01-193-3/+2
| | | | | | includes. llvm-svn: 172891
* [MC/Mach-O] Add support for linker options in Mach-O files.Daniel Dunbar2013-01-181-1/+29
| | | | llvm-svn: 172779
* Remove unneeded include and empty lineEli Bendersky2013-01-161-2/+0
| | | | llvm-svn: 172642
OpenPOWER on IntegriCloud