Use AnonConst for asm! constants
This commit is contained in:
parent
cbd6ec7604
commit
32be124e30
37 changed files with 281 additions and 242 deletions
|
@ -1213,7 +1213,7 @@ pub enum InlineAsmOperand<'tcx> {
|
|||
out_place: Option<Place<'tcx>>,
|
||||
},
|
||||
Const {
|
||||
value: Operand<'tcx>,
|
||||
value: Box<Constant<'tcx>>,
|
||||
},
|
||||
SymFn {
|
||||
value: Box<Constant<'tcx>>,
|
||||
|
|
|
@ -584,8 +584,7 @@ macro_rules! make_mir_visitor {
|
|||
} => {
|
||||
for op in operands {
|
||||
match op {
|
||||
InlineAsmOperand::In { value, .. }
|
||||
| InlineAsmOperand::Const { value } => {
|
||||
InlineAsmOperand::In { value, .. } => {
|
||||
self.visit_operand(value, location);
|
||||
}
|
||||
InlineAsmOperand::Out { place, .. } => {
|
||||
|
@ -607,7 +606,8 @@ macro_rules! make_mir_visitor {
|
|||
);
|
||||
}
|
||||
}
|
||||
InlineAsmOperand::SymFn { value } => {
|
||||
InlineAsmOperand::Const { value }
|
||||
| InlineAsmOperand::SymFn { value } => {
|
||||
self.visit_constant(value, location);
|
||||
}
|
||||
InlineAsmOperand::SymStatic { def_id: _ } => {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue