diff options
author | Dan Gohman <gohman@apple.com> | 2009-11-12 01:59:26 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-11-12 01:59:26 +0000 |
commit | a9b40a6eb411de5e5a7ba04ed46f45e02880f9b1 (patch) | |
tree | 4c6688515338a5f11bba0a30b6167d7487945ec0 /llvm/lib/CodeGen/BranchFolding.h | |
parent | e2a63f27988d792621223d486a063c0f15c77471 (diff) | |
download | bcm5719-llvm-a9b40a6eb411de5e5a7ba04ed46f45e02880f9b1.tar.gz bcm5719-llvm-a9b40a6eb411de5e5a7ba04ed46f45e02880f9b1.zip |
Make the BranchFolderPass class local to BranchFolding.cpp.
llvm-svn: 86928
Diffstat (limited to 'llvm/lib/CodeGen/BranchFolding.h')
-rw-r--r-- | llvm/lib/CodeGen/BranchFolding.h | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/llvm/lib/CodeGen/BranchFolding.h b/llvm/lib/CodeGen/BranchFolding.h index 864358c9c8a..648ec92b1eb 100644 --- a/llvm/lib/CodeGen/BranchFolding.h +++ b/llvm/lib/CodeGen/BranchFolding.h @@ -11,7 +11,6 @@ #define LLVM_CODEGEN_BRANCHFOLDING_HPP #include "llvm/CodeGen/MachineBasicBlock.h" -#include "llvm/CodeGen/MachineFunctionPass.h" #include <vector> namespace llvm { @@ -20,6 +19,7 @@ namespace llvm { class RegScavenger; class TargetInstrInfo; class TargetRegisterInfo; + template<typename T> class SmallVectorImpl; class BranchFolder { public: @@ -119,19 +119,6 @@ namespace llvm { MachineBasicBlock *TBB, MachineBasicBlock *FBB, const SmallVectorImpl<MachineOperand> &Cond); }; - - - /// BranchFolderPass - Wrap branch folder in a machine function pass. - class BranchFolderPass : public MachineFunctionPass, - public BranchFolder { - public: - static char ID; - explicit BranchFolderPass(bool defaultEnableTailMerge) - : MachineFunctionPass(&ID), BranchFolder(defaultEnableTailMerge) {} - - virtual bool runOnMachineFunction(MachineFunction &MF); - virtual const char *getPassName() const { return "Control Flow Optimizer"; } - }; } #endif /* LLVM_CODEGEN_BRANCHFOLDING_HPP */ |