summaryrefslogtreecommitdiffstats
path: root/lld/lib/ReaderWriter/ReaderLinkerScript.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [InputGraph][Gnu] Add LinkerScript support.Shankar Easwaran2013-11-241-98/+0
| | | | | | | | | | | | | | | | This adds LinkerScript support by creating a type Script which is of type FileNode in the InputGraph. Once the LinkerScript Parser converts the LinkerScript into a sequence of command, the commands are handled by the equivalent LinkerScript node for the current Flavor/Target. For ELF, a ELFGNULdScript gets created which converts the commands to ELF nodes and ELF control nodes(ELFGroup for handling Group nodes). Since the Inputfile type has to be determined in the Driver, the Driver needs to determine the complete path of the file that needs to be processed by the Linker. Due to this, few tests have been removed since the Driver uses paths that doesnot exist. llvm-svn: 195583
* Remove unnecessary namespace qualifier.Rui Ueyama2013-11-051-5/+5
| | | | llvm-svn: 194037
* [Layout] Assign ordinals in Resolution order.Shankar Easwaran2013-10-091-4/+0
| | | | llvm-svn: 192277
* Update error classes from all lowercase to camel case.Rui Ueyama2013-10-091-1/+1
| | | | llvm-svn: 192261
* [lld][InputGraph] Change the Resolver to use inputGraphShankar Easwaran2013-10-071-7/+6
| | | | | | | | | | | | 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
* Change the parseFile argument from MemoryBuffer pointer to LinkerInputJoerg Sonnenberger2013-09-071-8/+13
| | | | | | reference. Move readFile logic into FileNode::createLinkerInput. llvm-svn: 190253
* add InputGraph functionalityShankar Easwaran2013-08-211-1/+1
| | | | llvm-svn: 188958
* Rename TargetInfo -> LinkingContext.Rui Ueyama2013-08-061-16/+15
| | | | | | | | | 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-3/+3
| | | | llvm-svn: 178918
* Correctly pass ownership of MemoryBuffers.Michael J. Spencer2013-04-051-3/+3
| | | | llvm-svn: 178914
* This is my Driver refactoring patch. Nick Kledzik2013-04-041-7/+3
| | | | | | | | | | | | | | | | | | | | | | | 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
* Devirtualize File::kind.Michael J. Spencer2013-03-201-3/+1
| | | | | | This is the standard way of implementing LLVM RTTI. llvm-svn: 177555
* Add basic linker script parsing.Michael J. Spencer2013-03-011-0/+105
llvm-svn: 176309
OpenPOWER on IntegriCloud