summaryrefslogtreecommitdiffstats
path: root/lld/lib/ReaderWriter/ReaderArchive.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [lld][InputGraph] Change the Resolver to use inputGraphShankar Easwaran2013-10-071-195/+0
| | | | | | | | | | | | Changes :- a) Functionality in InputGraph to insert Input elements at any position b) Functionality in the Resolver to use nextFile c) Move the functionality of assigning file ordinals to InputGraph d) Changes all inputs to MemoryBuffers e) Remove LinkerInput, InputFiles, ReaderArchive llvm-svn: 192081
* Drop the context forceLoadAllArchives() support. Rename the isForceLoadJoerg Sonnenberger2013-09-081-1/+1
| | | | | | | | | 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
* Change the parseFile argument from MemoryBuffer pointer to LinkerInputJoerg Sonnenberger2013-09-071-9/+12
| | | | | | reference. Move readFile logic into FileNode::createLinkerInput. llvm-svn: 190253
* Rename TargetInfo -> LinkingContext.Rui Ueyama2013-08-061-8/+8
| | | | | | | | | Also change some local variable names: "ti" -> "context" and "_targetInfo" -> "_context". Differential Revision: http://llvm-reviews.chandlerc.com/D1301 llvm-svn: 187823
* Revert "Correctly pass ownership of MemoryBuffers."Michael J. Spencer2013-04-051-5/+4
| | | | llvm-svn: 178918
* Correctly pass ownership of MemoryBuffers.Michael J. Spencer2013-04-051-4/+5
| | | | llvm-svn: 178914
* This fixes a SIGSEGV failure in ReaderArchive while trying to trace whatShankar Easwaran2013-04-051-2/+2
| | | | | | | | | | | InputFile is being pulled from the Archive library to resolve a symbol. The buffer which was being used was already being handed over to the MemoryBuffer object and was being accessed after the hand over. Moving it before the buffer is handed over. llvm-svn: 178838
* This is my Driver refactoring patch. Nick Kledzik2013-04-041-15/+16
| | | | | | | | | | | | | | | | | | | | | | | The major changes are: 1) LinkerOptions has been merged into TargetInfo 2) LinkerInvocation has been merged into Driver 3) Drivers no longer convert arguments into an intermediate (core) argument list, but instead create a TargetInfo object and call setter methods on it. This is only how in-process linking would work. That is, you can programmatically set up a TargetInfo object which controls the linking. 4) Lots of tweaks to test suite to work with driver changes 5) Add the DarwinDriver 6) I heavily doxygen commented TargetInfo.h Things to do after this patch is committed: a) Consider renaming TargetInfo, given its new roll. b) Consider pulling the list of input files out of TargetInfo. This will enable in-process clients to create one TargetInfo the re-use it with different input file lists. c) Work out a way for Drivers to format the warnings and error done in core linking. llvm-svn: 178776
* Set ordinals correctly.Michael J. Spencer2013-03-201-1/+3
| | | | | | | This actually doesn't change behavior with the current LinkerInvocation, but it's needed when you make reading parallel. llvm-svn: 177554
* [lld] remove trailing whitespaceShankar Easwaran2013-03-141-17/+17
| | | | llvm-svn: 177079
* [ELF] Add support for reading dynamic libraries.Michael J. Spencer2013-02-111-11/+0
| | | | llvm-svn: 174916
* [Archive] Update to LLVM change.Michael J. Spencer2013-02-031-6/+16
| | | | llvm-svn: 174273
* add elf targethandlerShankar Easwaran2013-01-251-4/+4
| | | | llvm-svn: 173430
* Add SectionPosition and OrderPassNick Kledzik2013-01-231-0/+11
| | | | llvm-svn: 173300
* Move everything over to TargetInfo.Michael J. Spencer2013-01-231-16/+19
| | | | | | | | I really would have liked to split this patch up, but it would greatly complicate the lld-core and lld drivers having to deal with both {Reader,Writer}Option and TargetInfo. llvm-svn: 173217
* Factor File::addAtom out to MutableFile::addAtom.Michael J. Spencer2013-01-121-4/+0
| | | | | | This removes a bunch of llvm_unreachables and makes a File's mutability part of the type system. llvm-svn: 172297
* [Archive] Use a hash map to lookup symbols in archives. Increases ↵Michael J. Spencer2013-01-101-5/+34
| | | | | | performance of linking lua by ~6x. llvm-svn: 172028
* changes after mspencer reviews in phabricatorShankar Easwaran2012-11-131-7/+3
| | | | llvm-svn: 167871
* Fix style violations.Michael J. Spencer2012-11-131-16/+11
| | | | llvm-svn: 167869
* Adding support to resolve symbols with archive libraries in lldShankar Easwaran2012-11-131-0/+160
llvm-svn: 167854
OpenPOWER on IntegriCloud