mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-19 17:37:24 +00:00
Register if-converter pass for -debug-pass.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51931 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7c9b65207e
commit
b3dd264f9d
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user