summaryrefslogtreecommitdiffstats
path: root/lld/unittests/MachOTests/MachONormalizedFileBinaryWriterTests.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Use alignment values everywhere instead of log2.Rui Ueyama2015-03-261-4/+4
| | | | | | | | This patch defines implicit conversion between integers and PowerOf2 instances, so uses of the classes is now implicit and look like regular integers. Now we are ready to remove the scaffolding. llvm-svn: 233245
* Define an implicit constructor which takes actual alignment value to PowerOf2.Rui Ueyama2015-03-261-4/+4
| | | | | | | The new constructor's type is the same, but this one takes not a log2 value but an alignment value itself, so the meaning is totally differnet. llvm-svn: 233244
* Make PowerOf2's constructor private.Rui Ueyama2015-03-261-4/+4
| | | | | | | Ban conversion from integers to PowerOf2 even if explicit to make all places we create PowerOf2 instances visible. llvm-svn: 233243
* Remove implicit constructor and operator int from PowerOf2.Rui Ueyama2015-03-261-9/+8
| | | | | | | | | | This patch is to make instantiation and conversion to an integer explicit, so that we can mechanically replace all occurrences of the class with integer in the next step. Now get() returns an alignment value rather than its log2 value. llvm-svn: 233242
* Update for llvm api change.Rafael Espindola2014-07-061-1/+3
| | | | llvm-svn: 212407
* Refer to error_code with an std prefix.Rafael Espindola2014-06-121-10/+13
| | | | llvm-svn: 210820
* include system_error directly.Rafael Espindola2014-06-121-1/+1
| | | | llvm-svn: 210801
* Run llvm/utils/sort_includes.py in a few files.Rafael Espindola2014-06-121-2/+0
| | | | | | This will reduce the noise in a followup patch. llvm-svn: 210800
* Uses #include "..." instead of #include <...> for llvm headers.Rafael Espindola2014-06-121-4/+4
| | | | llvm-svn: 210799
* replace llvm::error_code with std::error_code.Rafael Espindola2014-06-121-1/+1
| | | | llvm-svn: 210781
* Replace OwningPtr with std::unique_ptr.Ahmed Charles2014-03-131-5/+2
| | | | | | | | This results in some simplifications to the code where an OwningPtr had to be used with the previous api and then ownership moved to a unique_ptr for the rest of lld. llvm-svn: 203809
* [Cleanup] Sort includes.Ahmed Charles2014-03-121-2/+2
| | | | llvm-svn: 203666
* [MachO] Begin support for reading fat binaries.Joey Gouly2014-01-141-15/+9
| | | | llvm-svn: 199259
* Whitespace.Rui Ueyama2014-01-131-59/+59
| | | | llvm-svn: 199164
* [mach-o] enable mach-o and native yaml to be intermixedNick Kledzik2014-01-111-4/+4
| | | | | | | | | | | | | | | | | | The main goal of this patch is to allow "mach-o encoded as yaml" and "native encoded as yaml" documents to be intermixed. They are distinguished via yaml tags at the start of the document. This will enable all mach-o test cases to be written using yaml instead of checking in object files. The Registry was extend to allow yaml tag handlers to be registered. The mach-o Reader adds a yaml tag handler for the tag "!mach-o". Additionally, this patch fixes some buffer ownership issues. When parsing mach-o binaries, the mach-o atoms can have pointers back into the memory mapped .o file. But with yaml encoded mach-o, name and content are ephemeral, so a copyRefs parameter was added to cause the mach-o atoms to make their own copy. llvm-svn: 198986
* [mach-o] revert gunk added to test cases to debug build bot failuresNick Kledzik2013-11-081-18/+0
| | | | llvm-svn: 194292
* [mach-o] fix memory ownership in test caseNick Kledzik2013-11-071-14/+28
| | | | llvm-svn: 194187
* add debug logging to help figure out why some tests fail on some build botsNick Kledzik2013-11-071-0/+18
| | | | llvm-svn: 194186
* [mach-o] fix EXPECT_EQ typesNick Kledzik2013-11-061-4/+4
| | | | llvm-svn: 194173
* [mach-o] binary reader and writer Nick Kledzik2013-11-061-0/+685
This patch adds support for converting normalized mach-o to and from binary mach-o. It also changes WriterMachO (which previously directly wrote a mach-o binary given a set of Atoms) to instead do it in two steps. The first step uses normalizedFromAtoms() to convert Atoms to normalized mach-o, and the second step uses writeBinary() which to generate the mach-o binary file. llvm-svn: 194167
OpenPOWER on IntegriCloud