diff options
author | Evan Cheng <evan.cheng@apple.com> | 2008-06-04 09:15:51 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2008-06-04 09:15:51 +0000 |
commit | b3dd264f9d356afd6fdc4a3ab17bf2404d062724 (patch) | |
tree | b09a163c014a4aff4c1c982a0a3a7c9b8e13842c /lib/CodeGen/IfConversion.cpp | |
parent | 7c9b65207e5bae26bcb4bcd62b50d7f72cb010bb (diff) | |
download | llvm-b3dd264f9d356afd6fdc4a3ab17bf2404d062724.tar.gz llvm-b3dd264f9d356afd6fdc4a3ab17bf2404d062724.tar.bz2 llvm-b3dd264f9d356afd6fdc4a3ab17bf2404d062724.tar.xz |
Register if-converter pass for -debug-pass.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51931 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/IfConversion.cpp')
-rw-r--r-- | lib/CodeGen/IfConversion.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/CodeGen/IfConversion.cpp b/lib/CodeGen/IfConversion.cpp index a77ccb766f..67182ba4bd 100644 --- a/lib/CodeGen/IfConversion.cpp +++ b/lib/CodeGen/IfConversion.cpp @@ -149,7 +149,7 @@ namespace { IfConverter() : MachineFunctionPass((intptr_t)&ID) {} virtual bool runOnMachineFunction(MachineFunction &MF); - virtual const char *getPassName() const { return "If converter"; } + virtual const char *getPassName() const { return "If Converter"; } private: bool ReverseBranchCondition(BBInfo &BBI); @@ -215,6 +215,9 @@ namespace { char IfConverter::ID = 0; } +static RegisterPass<IfConverter> +X("if-converter", "If Converter"); + FunctionPass *llvm::createIfConverterPass() { return new IfConverter(); } bool IfConverter::runOnMachineFunction(MachineFunction &MF) { |