diff options
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/rust/backend/rust-compile-asm.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/rust/backend/rust-compile-asm.cc b/gcc/rust/backend/rust-compile-asm.cc index 301da40..aa83fb7 100644 --- a/gcc/rust/backend/rust-compile-asm.cc +++ b/gcc/rust/backend/rust-compile-asm.cc @@ -96,6 +96,13 @@ tree CompileAsm::asm_construct_outputs (HIR::InlineAsm &expr) { // TODO: Do i need to do this? + int count = 0; + + for (auto &output : expr.get_operands ()) + { + if (output.register_type == AST::InlineAsmOperand::RegisterType::Out) + count++; + } return NULL_TREE; } |