about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2015-12-18 13:43:46 +0530
committerManish Goregaokar <manishsmail@gmail.com>2015-12-18 20:02:14 +0530
commita8e424685cbf4db8fced2cee71f9d1b36e0dcf4b (patch)
treee4e5f3fcf28e4a7ca861ad3576747fb85795f9b8 /src/rustllvm/RustWrapper.cpp
parent4f8b32c96fd346716d55ceedaac490ff0d7fd463 (diff)
parent88ffb26cf50cff64c7ec0f4fc269a377a5b2918a (diff)
downloadrust-a8e424685cbf4db8fced2cee71f9d1b36e0dcf4b.tar.gz
rust-a8e424685cbf4db8fced2cee71f9d1b36e0dcf4b.zip
Rollup merge of #30452 - dotdash:24876_take_2, r=alexcrichton
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