summary refs log tree commit diff
path: root/src/test/run-make/emit
AgeCommit message (Collapse)AuthorLines
2015-12-18Fix emitting asm and object file output at the same timeBjörn Steinbrink-0/+90
LLVM doesn't really support reusing the same module to emit more than one file. One bug this causes is that the IR is invalidated by the stack coloring pass when emitting the first file, and then the IR verifier complains by the time we try to emit the second file. Also, we get different binaries with --emit=asm,link than with just --emit=link. In some cases leading to segfaults. Unfortunately, it seems that at this point in time, the most sensible option to circumvent this problem is to just clone the whole llvm module for the asm output if we need both, asm and obj file output. Fixes #24876 Fixes #26235