diff options
Diffstat (limited to 'include/llvm/CodeGen/MachineOperand.h')
| -rw-r--r-- | include/llvm/CodeGen/MachineOperand.h | 4 | 
1 files changed, 3 insertions, 1 deletions
diff --git a/include/llvm/CodeGen/MachineOperand.h b/include/llvm/CodeGen/MachineOperand.h index eede2cc50ced..8748afcba92e 100644 --- a/include/llvm/CodeGen/MachineOperand.h +++ b/include/llvm/CodeGen/MachineOperand.h @@ -435,10 +435,12 @@ public:      Op.setTargetFlags(TargetFlags);      return Op;    } -  static MachineOperand CreateBA(BlockAddress *BA) { +  static MachineOperand CreateBA(BlockAddress *BA, +                                 unsigned char TargetFlags = 0) {      MachineOperand Op(MachineOperand::MO_BlockAddress);      Op.Contents.OffsetedInfo.Val.BA = BA;      Op.setOffset(0); // Offset is always 0. +    Op.setTargetFlags(TargetFlags);      return Op;    }  | 
