about summary refs log tree commit diff
path: root/src/rt/rust_timer.cpp
diff options
context:
space:
mode:
authorHaitao Li <lihaitao@gmail.com>2011-12-05 14:56:11 +0800
committerHaitao Li <lihaitao@gmail.com>2011-12-05 17:21:20 +0800
commit47ea57feadb6d05241fad064434c28c48e31b7fc (patch)
tree88bf76125ea5c20b1536ce024f5b15b69497bb6e /src/rt/rust_timer.cpp
parent52d7dc5e0a218f1495da2057ac064811853a4c9c (diff)
downloadrust-47ea57feadb6d05241fad064434c28c48e31b7fc.tar.gz
rust-47ea57feadb6d05241fad064434c28c48e31b7fc.zip
rustc: Add suffix ".rc" to LLVM module identifier
LLVM code generator emits the ".file filename" directive for ELF
backends. Value of the "filename" is set as the LLVM module identifier.
Due to a LLVM MC bug[1], LLVM crashes if the module identifer is same as
other symbols such as a function name in the module.

This patch adds a ".rc" suffix (means crates) to LLVM module identifier
to workaround the bug.

Fixes issue #1251.

1. http://llvm.org/bugs/show_bug.cgi?id=11479
Diffstat (limited to 'src/rt/rust_timer.cpp')
0 files changed, 0 insertions, 0 deletions