hanchenye-llvm-project/lld/test
Rui Ueyama c817fd2273 Call File::beforeLink hook even if the file is in an archive.
Previously we didn't call the hook on a file in an archive, which
let the PE/COFF port fail to link files in archives. It was a
simple mistake. Added a call to the hook and also added a test to
catch that error.

const_cast is an unfortunate hack. Files in the resolver are usually
const, but they are not actually const objects, since they are
mutated if either a file is taken from an archive (an archive file
does never return the same file twice) or the beforeLink hook is
called. Maybe we should just remove const from there -- because they
are not const.

llvm-svn: 230808
2015-02-27 23:15:11 +00:00
..
Driver [Driver] Use paths explicitly provided by the -L option before default paths 2015-02-26 20:09:50 +00:00
LinkerScript [Core,MachO,Test] Remove trailing whitespace. 2015-02-22 23:54:38 +00:00
Unit
core [Core] Do not reclaim absolute atoms in resolver. 2015-02-26 05:39:57 +00:00
darwin
elf Update comments, fix typos. 2015-02-27 04:23:21 +00:00
mach-o Fix REQUIRES lines added in r226951 and add the x86 feature if the X86 target was compiled in 2015-01-24 03:55:22 +00:00
pecoff Call File::beforeLink hook even if the file is in an archive. 2015-02-27 23:15:11 +00:00
CMakeLists.txt Remove CMake standalone build configuration 2015-01-12 21:41:10 +00:00
Makefile
lit.cfg Remove YAML/Native round-trip passes. 2015-02-20 22:10:28 +00:00
lit.site.cfg.in