summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/Object
Commit message (Collapse)AuthorAgeFilesLines
* Fix unittest for buildbot with mips host (32bit big endian) from r295174David Bozier2017-02-151-6/+4
| | | | llvm-svn: 295188
* Attempt to fix buildbots after commit of r295173. David Bozier2017-02-151-1/+11
| | | | | | Unit tests needed to check on the endianness of the host platform. (Test was failing for big endian hosts). llvm-svn: 295174
* Fix incorrect formatting of DataRefImpl members in operator<< functionDavid Bozier2017-02-152-0/+35
| | | | | | | | | | | Changed format specifiers to use format macro constant for pointer type. Moved width part of format specifier in the correct place for formatting members a and b. Added a unit test to confirm the output. Differential Revision: https://reviews.llvm.org/D28957 llvm-svn: 295173
* Fix llvm-symbolizer to correctly sort a symbol array and calculate symbol sizesKuba Brecka2016-11-152-0/+41
| | | | | | | | Sometimes, llvm-symbolizer gives wrong results due to incorrect sizes of some symbols. The reason for that was an incorrectly sorted array in computeSymbolSizes. The comparison function used subtraction of unsigned types, which is incorrect. Let's change this to return explicit -1 or 1. Differential Revision: https://reviews.llvm.org/D26537 llvm-svn: 287028
* Invert the MC -> Object dependency.Rafael Espindola2014-07-034-102/+0
| | | | | | | | | Now that we have a lib/MC/MCAnalysis, the dependency was there just because of two helper classes. Move the two over to MC. This will allow IRObjectFile to parse inline assembly. llvm-svn: 212248
* ELFObjectWriter: deduplicate suffices in strtabHans Wennborg2014-04-302-0/+41
| | | | | | | | | | | | | | | We already do this for shstrtab, so might as well do it for strtab. This extracts the string table building code into a separate class. The idea is to use it for other object formats too. I mostly wanted to do this for the general principle, but it does save a little bit on object file size. I tried this on a clang bootstrap and saved 0.54% on the sum of object file sizes (1.14 MB out of 212 MB for a release build). Differential Revision: http://reviews.llvm.org/D3533 llvm-svn: 207670
* Object: Don't double-escape empty hexdataDavid Majnemer2014-03-201-1/+1
| | | | | | | We would emit a pair of double quotes inside a pair of single quotes. Just use a pair of single quotes. llvm-svn: 204312
* [CMake] Update LLVM_LINK_COMPONENTS for each CMakeLists.txt.NAKAMURA Takumi2013-12-101-1/+2
| | | | llvm-svn: 196908
* Update incorrect file headers.Sean Silva2013-08-011-1/+1
| | | | | | One of these was spotted in review by Rafael. llvm-svn: 187598
* Attempt at fixing a mingw bot.Rafael Espindola2013-07-131-2/+0
| | | | | | | | | It is failing with YAMLTest.cpp:38: instantiated from here YAMLTraits.h:226: error: 'llvm::yaml::MappingTraits<<unnamed>::BinaryHolder>::mapping' is not a valid template argument for type 'void (*)(llvm::yaml::IO&, <unnamed>::BinaryHolder&)' because function 'static void llvm::yaml::MappingTraits<<unnamed>::BinaryHolder>::mapping(llvm::yaml::IO&, <unnamed>::BinaryHolder&)' has not external linkage llvm-svn: 186245
* Make BinaryRef output correctly in case of empty data.Sean Silva2013-07-093-0/+62
Previously, it would simply output nothing, but it should output an empty string `""`. llvm-svn: 185894
OpenPOWER on IntegriCloud