]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #40702 - mrhota:global_asm, r=nagisa
authorCorey Farwell <coreyf@rwell.org>
Fri, 14 Apr 2017 21:41:03 +0000 (17:41 -0400)
committerGitHub <noreply@github.com>
Fri, 14 Apr 2017 21:41:03 +0000 (17:41 -0400)
commite6f6b445aa2fc71f626dff7f7c7988b04f4a292d
tree7ecc980b1e110fbf55b96cf7ac88825d77244f54
parentba377982a3fde98a3cac02493c16dc623b02a421
parenta35c4e354a65fdbbb61741db3a9dd1c190f2f146
Rollup merge of #40702 - mrhota:global_asm, r=nagisa

Implement global_asm!() (RFC 1548)

This is a first attempt. ~~One (potential) problem I haven't solved is how to handle multiple usages of `global_asm!` in a module/crate. It looks like `LLVMSetModuleInlineAsm` overwrites module asm, and `LLVMAppendModuleInlineAsm` is not provided in LLVM C headers ðŸ˜¦~~

I can provide more detail as needed, but honestly, there's not a lot going on here.

r? @eddyb

CC @Amanieu @jackpot51

Tracking issue: #35119
src/doc/unstable-book/src/SUMMARY.md
src/librustc_metadata/encoder.rs