summaryrefslogtreecommitdiffstats
path: root/lld/lib/ReaderWriter/ELF/CreateELF.h
Commit message (Collapse)AuthorAgeFilesLines
* ELF: Move CreateELF() from its own file to ELFReader.h.Rui Ueyama2015-04-091-65/+0
| | | | | | | | CreateELF.h was included only by ELFReader.h, and it was used only by ELFReader class. By making the function a member of the class, we can remove template parameters. llvm-svn: 234540
* ELF: Simplify CreateELF.Rui Ueyama2015-04-061-37/+17
| | | | | | | | | CreateELF was a combination of templates and C preprocessor macros. This patch removes uses of macros. http://reviews.llvm.org/D8810 llvm-svn: 234253
* ELF: Pass file types instead of type traits to ELFObjectReader.Rui Ueyama2015-04-031-5/+8
| | | | | | | | All <Arch>ELFFileCreateFileTraits structs are the same except its file type. That means that we don't need to pass the type traits. Instead, we can only pass file types. By doing this, we can remove copy-pasted boilerplates. llvm-svn: 234047
* ELF: Remove <Arch>ELFFileCreateELFTraits::result_type.Rui Ueyama2015-04-021-6/+6
| | | | | | | | result_type is always ErrorOr<unique_ptr<File>>, and since the type traits is for instantiating ELF files, it's unlikely that we want to return something else. This patch removes that type. llvm-svn: 233948
* ELF: Always use variadic templates in CreateELF.h.Rui Ueyama2015-04-021-54/+18
| | | | | | | | Since we no longer support MSVC 2012, we can assume that variadic templates are always supported. This patch removes an #ifdef for C++ compilers that don't support variadic templates. llvm-svn: 233901
* Fix trailing whitespace.Shankar Easwaran2014-01-271-1/+1
| | | | llvm-svn: 200182
* [lld] fix build when LLVM_HAS_VARIADIC_TEMPLATES is falseNick Kledzik2013-12-191-0/+9
| | | | llvm-svn: 197734
* [ELF] Add support for reading dynamic libraries.Michael J. Spencer2013-02-111-0/+109
llvm-svn: 174916
OpenPOWER on IntegriCloud