summaryrefslogtreecommitdiffstats
path: root/lld/unittests/DriverTests/DarwinLdDriverTest.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Fix DarwinLdDriverTest.cpp to pass real llvm options.Pete Cooper2015-12-161-3/+3
| | | | | | | | | | | After r255819, parse() actually parses what you pass it. This test was failing because it passed '--debug-only' which isn't in release builds, but also 'foo' which isn't an option at all. We now pass -enable-tbaa and -enable-misched which are real options. llvm-svn: 255822
* Unittest: Do s/_context/_ctx/g.Rui Ueyama2015-02-101-51/+51
| | | | llvm-svn: 228750
* Sort include files according to convention.Shankar Easwaran2014-10-181-3/+1
| | | | llvm-svn: 220131
* [mach-o] Let darwin driver infer arch from .o files if -arch not used.Nick Kledzik2014-09-041-30/+40
| | | | | | | | | | | | | | | | Mach-O has a "fat" (or "universal") variant where the same contents built for different architectures are concatenated into one file with a table-of-contents header at the start. But this leaves a dilemma for the linker - which architecture to use. Normally, the linker command line -arch is used to force which slice of any fat files are used. The clang compiler always passes -arch to the linker when invoking it. But some Makefiles invoke the linker directly and don’t specify the -arch option. For those cases, the linker scans all input files in command line order and finds the first non-fat object file. Whatever architecture it is becomes the architecture for the link. llvm-svn: 217189
* [mach-o] Fix initial live atoms with -dead_stripNick Kledzik2014-08-211-3/+4
| | | | | | | When -dead_strip is used with -exported_symbols_list the initial set of live atoms are those in the export list. llvm-svn: 216213
* MachO: rename _outputFileType to avoid shadowing parent field.Tim Northover2014-06-201-5/+5
| | | | llvm-svn: 211367
* Make anonymous namespace as small as possible.Rui Ueyama2014-03-271-4/+1
| | | | llvm-svn: 204982
* Add "override" and remove "virtual" where appropriate.Rui Ueyama2014-03-061-1/+1
| | | | | | | For the record, I used clang-modernize to add "override" and perl to remove "virtual". llvm-svn: 203164
* [mach-o] Add support for -mllvm to darwin driverNick Kledzik2013-09-281-0/+9
| | | | llvm-svn: 191594
* [mach-o] switch to use llvm::MachO:: constantsNick Kledzik2013-09-271-16/+17
| | | | | | Stop using some locally defined mach-o constants. llvm-svn: 191581
* Make Driver::link and LinkingContext::validate return true on success.Rui Ueyama2013-09-241-35/+35
| | | | | | | | | | | | | This patch inverts the return value of these functions, so that they return "true" on success and "false" on failure. The meaning of boolean return value was mixed in LLD; for example, InputGraph::validate() returns true on success. With this patch they'll become consistent. CC: llvm-commits Differential Revision: http://llvm-reviews.chandlerc.com/D1748 llvm-svn: 191341
* Support darwin linker options: Nick Kledzik2013-09-101-0/+52
| | | | | | | | -current_version, -compatibility_version, and -install_name. Patch by Joe Ranieri llvm-svn: 190452
* Drop the context forceLoadAllArchives() support. Rename the isForceLoadJoerg Sonnenberger2013-09-081-10/+0
| | | | | | | | | attribute in LinkerInput to isWholeArchive and use that for deciding whether library archives should be expanded. Implement the -all_load option of the Darwin linker using this flag and drop the support for it in GNU mode. llvm-svn: 190275
* add InputGraph functionalityShankar Easwaran2013-08-211-1/+1
| | | | llvm-svn: 188958
* Rename TargetInfo -> LinkingContext.Rui Ueyama2013-08-061-55/+52
| | | | | | | | | Also change some local variable names: "ti" -> "context" and "_targetInfo" -> "_context". Differential Revision: http://llvm-reviews.chandlerc.com/D1301 llvm-svn: 187823
* Check the return value from parse()Nick Kledzik2013-07-181-15/+15
| | | | llvm-svn: 186630
* Add support for -all_load. Enhance DarwinLdDriverTest unit test test cases ↵Nick Kledzik2013-07-181-0/+99
| | | | | | to test all options parsed so far llvm-svn: 186626
* Fix Driver tests to check return value of parse(), simplify subclassing, and ↵Nick Kledzik2013-07-161-29/+26
| | | | | | remove unneeded instance variables llvm-svn: 186440
* [Darwin][Driver] Add unit tests.Rui Ueyama2013-06-111-0/+89
llvm-svn: 183806
OpenPOWER on IntegriCloud