diff options
Diffstat (limited to 'contrib/llvm/lib/CodeGen/MachineBasicBlock.cpp')
| -rw-r--r-- | contrib/llvm/lib/CodeGen/MachineBasicBlock.cpp | 6 | 
1 files changed, 6 insertions, 0 deletions
diff --git a/contrib/llvm/lib/CodeGen/MachineBasicBlock.cpp b/contrib/llvm/lib/CodeGen/MachineBasicBlock.cpp index 590acc01008a..81597afe6b02 100644 --- a/contrib/llvm/lib/CodeGen/MachineBasicBlock.cpp +++ b/contrib/llvm/lib/CodeGen/MachineBasicBlock.cpp @@ -228,6 +228,12 @@ LLVM_DUMP_METHOD void MachineBasicBlock::dump() const {  }  #endif +bool MachineBasicBlock::isLegalToHoistInto() const { +  if (isReturnBlock() || hasEHPadSuccessor()) +    return false; +  return true; +} +  StringRef MachineBasicBlock::getName() const {    if (const BasicBlock *LBB = getBasicBlock())      return LBB->getName();  | 
