summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-symbolizer/LLVMSymbolize.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [C++11] Introduce ObjectFile::symbols() to use range-based loops.Alexey Samsonov2014-03-171-11/+9
| | | | | | | | | | | | Reviewers: rafael Reviewed By: rafael CC: llvm-commits Differential Revision: http://llvm-reviews.chandlerc.com/D3081 llvm-svn: 204031
* [C++11] Use ObjectFile::sections() in commandline llvm toolsAlexey Samsonov2014-03-131-4/+3
| | | | llvm-svn: 203802
* Replace OwningPtr<T> with std::unique_ptr<T>.Ahmed Charles2014-03-061-3/+3
| | | | | | | | | | This compiles with no changes to clang/lld/lldb with MSVC and includes overloads to various functions which are used by those projects and llvm which have OwningPtr's as parameters. This should allow out of tree projects some time to move. There are also no changes to libs/Target, which should help out of tree targets have time to move, if necessary. llvm-svn: 203083
* [C++11] Replace OwningPtr::take() with OwningPtr::release().Ahmed Charles2014-03-051-2/+2
| | | | llvm-svn: 202957
* llvm-symbolizer: use dynamic symbol table if the regular one is stripped.Alexey Samsonov2014-02-261-29/+43
| | | | llvm-svn: 202265
* Change the begin and end methods in ObjectFile to match the style guide.Rafael Espindola2014-02-101-2/+2
| | | | llvm-svn: 201108
* Simplify the handling of iterators in ObjectFile.Rafael Espindola2014-01-301-6/+2
| | | | | | | | | | | | None of the object file formats reported error on iterator increment. In retrospect, that is not too surprising: no object format stores symbols or sections in a linked list or other structure that requires chasing pointers. As a consequence, all error checking can be done on begin() and end(). This reduces the text segment of bin/llvm-readobj in my machine from 521233 to 518526 bytes. llvm-svn: 200442
* llvm-symbolizer: make mangled name heuristic apply to all symbolsEd Maste2014-01-161-7/+5
| | | | | | PR: http://llvm.org/pr18431 Review: http://llvm-reviews.chandlerc.com/D2552 llvm-svn: 199404
* Return an ErrorOr<Binary *> from createBinary.Rafael Espindola2014-01-151-9/+12
| | | | | | | | I did write a version returning ErrorOr<OwningPtr<Binary> >, but it is too cumbersome to use without std::move. I will keep the patch locally and submit when we switch to c++11. llvm-svn: 199326
* Check the error code and save a call to sys::fs::exists.Rafael Espindola2014-01-151-4/+2
| | | | llvm-svn: 199293
* Re-sort #include lines again, prior to moving headers around.Chandler Carruth2014-01-131-1/+0
| | | | llvm-svn: 199080
* llvm-symbolizer: don't always run demangler on global object namesAlexey Samsonov2013-10-161-1/+7
| | | | llvm-svn: 192781
* llvm-symbolizer: use real path when looking for debug binary locationAlexey Samsonov2013-08-261-2/+11
| | | | llvm-svn: 189250
* llvm-symbolizer: add support for .gnu_debuglink sectionAlexey Samsonov2013-08-141-0/+83
| | | | llvm-svn: 188386
* LLVMSymbolize.cpp: Fix build. Triple::ArchType is not a namespace.NAKAMURA Takumi2013-07-171-1/+1
| | | | llvm-svn: 186494
* llvm-symbolizer: be more careful with colons in file namesAlexey Samsonov2013-07-171-8/+7
| | | | llvm-svn: 186493
* llvm-symbolizer: Recognize a drive letter on win32. Then "REQUIRES: shell" ↵NAKAMURA Takumi2013-07-011-0/+5
| | | | | | | can be removed. FIXME: Could we use llvm::sys::Path here? llvm-svn: 185322
* llvm-symbolizer: don't leave dangling pointers after flushing ↵Alexey Samsonov2013-06-281-0/+2
| | | | | | LLVMSymbolizer. Add a destructor. llvm-svn: 185154
* llvm-symbolizer: skip leading underscore in Mach-O symbol table entriesAlexey Samsonov2013-06-281-0/+3
| | | | llvm-svn: 185151
* llvm-symbolizer: make name demangling a public static method of LLVMSymbolizerAlexey Samsonov2013-06-281-8/+10
| | | | llvm-svn: 185143
* llvm-symbolizer: add support for Mach-O universal binariesAlexey Samsonov2013-06-281-38/+71
| | | | llvm-svn: 185137
* [llvm-symbolizer] rewrite r183213 in a more clear wayAlexey Samsonov2013-06-071-6/+7
| | | | llvm-svn: 183526
* [llvm-symbolizer] Avoid calling slow getSymbolSize for Mach-O files. Assume ↵Alexey Samsonov2013-06-041-8/+19
| | | | | | that symbols with zero size are in fact large enough. llvm-svn: 183213
* Correct handling invalid filename in llvm-symbolizerAlexey Samsonov2013-06-031-2/+2
| | | | llvm-svn: 183102
* At Jim Grosbach's request detemplate Object/MachO.h.Rafael Espindola2013-04-181-1/+1
| | | | | | | We are still able to handle mixed endian objects by swapping one struct at a time. llvm-svn: 179778
* Convert MachOObjectFile to a template.Rafael Espindola2013-04-091-1/+1
| | | | | | | For now it is templated only on being 64 or 32 bits. I will add little/big endian next. llvm-svn: 179097
* 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-191-0/+4
| | | | llvm-svn: 177390
* clang-formatize llvm-symbolizer codeAlexey Samsonov2013-02-151-45/+39
| | | | llvm-svn: 175255
* llvm-symbolizer: speedup symbol lookupDmitry Vyukov2013-02-141-39/+59
| | | | llvm-svn: 175158
* 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-041-1/+1
| | | | llvm-svn: 174332
* llvm-symbolizer: factor out bits of the tool into separate ↵Alexey Samsonov2013-01-221-0/+272
LLVMSymbolize.{h,cpp} files. No functionality change. llvm-svn: 173159
OpenPOWER on IntegriCloud