diff options
| author | Björn Steinbrink <bsteinbr@gmail.com> | 2015-12-18 01:24:40 +0100 |
|---|---|---|
| committer | Björn Steinbrink <bsteinbr@gmail.com> | 2015-12-18 04:14:52 +0100 |
| commit | 88ffb26cf50cff64c7ec0f4fc269a377a5b2918a (patch) | |
| tree | 107f1dbeab5549f97f5e2c1894c0cc2406d1f9e5 /src/rustllvm/RustWrapper.cpp | |
| parent | 785a8a6681963ff389b5902e7d6bd30006fafe0a (diff) | |
| download | rust-88ffb26cf50cff64c7ec0f4fc269a377a5b2918a.tar.gz rust-88ffb26cf50cff64c7ec0f4fc269a377a5b2918a.zip | |
Fix emitting asm and object file output at the same time
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
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
