Reimplement lowering of sym operands for asm! so that it also works with global_asm!
This commit is contained in:
parent
f9d4d12b6a
commit
dc345d8bff
28 changed files with 400 additions and 163 deletions
|
@ -1352,10 +1352,15 @@ impl<'a> State<'a> {
|
|||
s.space();
|
||||
s.print_anon_const(anon_const);
|
||||
}
|
||||
hir::InlineAsmOperand::Sym { expr } => {
|
||||
s.word("sym");
|
||||
hir::InlineAsmOperand::SymFn { anon_const } => {
|
||||
s.word("sym_fn");
|
||||
s.space();
|
||||
s.print_expr(expr);
|
||||
s.print_anon_const(anon_const);
|
||||
}
|
||||
hir::InlineAsmOperand::SymStatic { path, def_id: _ } => {
|
||||
s.word("sym_static");
|
||||
s.space();
|
||||
s.print_qpath(path, true);
|
||||
}
|
||||
},
|
||||
AsmArg::Options(opts) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue