summaryrefslogtreecommitdiffstats
path: root/lld/unittests/MachOTests/MachONormalizedFileBinaryReaderTests.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Use alignment values everywhere instead of log2.Rui Ueyama2015-03-261-8/+8
| | | | | | | | 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
* Remove implicit constructor and operator int from PowerOf2.Rui Ueyama2015-03-261-8/+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
* Fix Mach-O unit tests breakage on WindowsRui Ueyama2014-11-071-10/+17
| | | | | | | | | | | | Mach-O normalized file reader assumes that the entire file is aligned to a large boundary. If the in-memory file is not aligned properly, it will abort with an assertion failure in read32/read64. This patch forces the in-memory file for the unit test to be aligned at 64-byte boundary. I found these tests are failing on Windows, but theoretically they could fail on other platform. llvm-svn: 221508
* Sort include files according to convention.Shankar Easwaran2014-10-181-3/+1
| | | | llvm-svn: 220131
* Uses #include "..." instead of #include <...> for llvm headers.Rafael Espindola2014-06-121-1/+1
| | | | llvm-svn: 210799
* [MachO] Begin support for reading fat binaries.Joey Gouly2014-01-141-12/+41
| | | | llvm-svn: 199259
* Whitespace.Rui Ueyama2014-01-131-29/+29
| | | | llvm-svn: 199164
* [mach-o] fix EXPECT_EQ typesNick Kledzik2013-11-061-8/+8
| | | | llvm-svn: 194173
* [mach-o] binary reader and writer Nick Kledzik2013-11-061-0/+714
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