adding an optional flag edge to a BRIND node

Is there any way to add an optional flag edge to a BRIND node? I In
the ARM backend I lower returns directly to BRINDs, so I need to add
an edge connecting the BRIND and the CopyToReg that sets the return
value. The other option is to create an ARM specific node that is
identical to BRIND except for having a flag edge.

Thanks,
Rafael

I think you've already figured this out, but just in case:

This isn't the best way to do this. I think you want to add a target-specific retflag node, which gets selected to your return instruction. BRIND is really used for tablejump's, which are "goto's", not "returns". Implementing return in terms of the BRIND node could confuse the dag combiner, even if it had a flag operand.

-Chris