UnifyFunctionExitNodes.h (208954) | UnifyFunctionExitNodes.h (212904) |
---|---|
1//===-- UnifyFunctionExitNodes.h - Ensure fn's have one return --*- C++ -*-===// 2// 3// The LLVM Compiler Infrastructure 4// 5// This file is distributed under the University of Illinois Open Source 6// License. See LICENSE.TXT for details. 7// 8//===----------------------------------------------------------------------===// --- 12 unchanged lines hidden (view full) --- 21#include "llvm/Pass.h" 22 23namespace llvm { 24 25struct UnifyFunctionExitNodes : public FunctionPass { 26 BasicBlock *ReturnBlock, *UnwindBlock, *UnreachableBlock; 27public: 28 static char ID; // Pass identification, replacement for typeid | 1//===-- UnifyFunctionExitNodes.h - Ensure fn's have one return --*- C++ -*-===// 2// 3// The LLVM Compiler Infrastructure 4// 5// This file is distributed under the University of Illinois Open Source 6// License. See LICENSE.TXT for details. 7// 8//===----------------------------------------------------------------------===// --- 12 unchanged lines hidden (view full) --- 21#include "llvm/Pass.h" 22 23namespace llvm { 24 25struct UnifyFunctionExitNodes : public FunctionPass { 26 BasicBlock *ReturnBlock, *UnwindBlock, *UnreachableBlock; 27public: 28 static char ID; // Pass identification, replacement for typeid |
29 UnifyFunctionExitNodes() : FunctionPass(&ID), | 29 UnifyFunctionExitNodes() : FunctionPass(ID), |
30 ReturnBlock(0), UnwindBlock(0) {} 31 32 // We can preserve non-critical-edgeness when we unify function exit nodes 33 virtual void getAnalysisUsage(AnalysisUsage &AU) const; 34 35 // getReturn|Unwind|UnreachableBlock - Return the new single (or nonexistant) 36 // return, unwind, or unreachable basic blocks in the CFG. 37 // --- 12 unchanged lines hidden --- | 30 ReturnBlock(0), UnwindBlock(0) {} 31 32 // We can preserve non-critical-edgeness when we unify function exit nodes 33 virtual void getAnalysisUsage(AnalysisUsage &AU) const; 34 35 // getReturn|Unwind|UnreachableBlock - Return the new single (or nonexistant) 36 // return, unwind, or unreachable basic blocks in the CFG. 37 // --- 12 unchanged lines hidden --- |